pub struct PazArcWriter<T: Write + Seek> {
writer: T,
headers: HashMap<String, PazEntry>,
encoding: Encoding,
is_audio: bool,
mov_key: Option<Vec<u8>>,
schema: Schema,
arc_key: ArcKey,
xor_key: u8,
compress: bool,
compress_level: u32,
}Available on crate features
musica and musica-arc only.Fields§
§writer: T§headers: HashMap<String, PazEntry>§encoding: Encoding§is_audio: bool§mov_key: Option<Vec<u8>>§schema: Schema§arc_key: ArcKey§xor_key: u8§compress: bool§compress_level: u32Implementations§
Trait Implementations§
Source§impl<T: Write + Seek> Archive for PazArcWriter<T>
impl<T: Write + Seek> Archive for PazArcWriter<T>
Source§fn new_file<'a>(
&'a mut self,
name: &str,
_size: Option<u64>,
) -> Result<Box<dyn WriteSeek + 'a>>
fn new_file<'a>( &'a mut self, name: &str, _size: Option<u64>, ) -> Result<Box<dyn WriteSeek + 'a>>
Creates a new file in the archive. Read more
Source§fn new_file_non_seek<'a>(
&'a mut self,
name: &str,
size: Option<u64>,
) -> Result<Box<dyn Write + 'a>>
fn new_file_non_seek<'a>( &'a mut self, name: &str, size: Option<u64>, ) -> Result<Box<dyn Write + 'a>>
Creates a new file in the archive that does not require seeking. Read more
Source§fn write_header(&mut self) -> Result<()>
fn write_header(&mut self) -> Result<()>
Writes the header of the archive. (Must be called after writing all files.)
Auto Trait Implementations§
impl<T> Freeze for PazArcWriter<T>where
T: Freeze,
impl<T> RefUnwindSafe for PazArcWriter<T>where
T: RefUnwindSafe,
impl<T> Send for PazArcWriter<T>where
T: Send,
impl<T> Sync for PazArcWriter<T>where
T: Sync,
impl<T> Unpin for PazArcWriter<T>where
T: Unpin,
impl<T> UnwindSafe for PazArcWriter<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more