pub struct HeaderWriter<W: Write> { /* private fields */ }Implementations§
Source§impl<W: Write> HeaderWriter<W>
impl<W: Write> HeaderWriter<W>
pub fn new(w: W) -> Self
pub fn new_with_options(w: W, options: HeaderWriterOptions) -> Self
pub fn set_options(&mut self, options: HeaderWriterOptions) -> &mut Self
pub fn write_magic(&mut self) -> Result<Vec<u8>, Error>
pub fn write_version(&mut self, version: Version) -> Result<Vec<u8>, Error>
pub fn write_index_size(&mut self, index_size: u32) -> Result<Vec<u8>, Error>
pub fn write_checksum(&mut self, checksum: u32) -> Result<Vec<u8>, Error>
Trait Implementations§
Auto Trait Implementations§
impl<W> Freeze for HeaderWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for HeaderWriter<W>where
W: RefUnwindSafe,
impl<W> Send for HeaderWriter<W>where
W: Send,
impl<W> Sync for HeaderWriter<W>where
W: Sync,
impl<W> Unpin for HeaderWriter<W>where
W: Unpin,
impl<W> UnwindSafe for HeaderWriter<W>where
W: 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