pub struct ContainerWriter<W: Write> { /* private fields */ }Expand description
Container writer that produces canonical RYGRANS containers.
Implementations§
Source§impl<W: Write> ContainerWriter<W>
impl<W: Write> ContainerWriter<W>
Sourcepub fn write_header(&mut self, header: &FileHeader) -> Result<(), AppError>
pub fn write_header(&mut self, header: &FileHeader) -> Result<(), AppError>
Write the file header.
Sourcepub fn write_block(
&mut self,
block: &Block,
decoded_data: &[u8],
) -> Result<(), AppError>
pub fn write_block( &mut self, block: &Block, decoded_data: &[u8], ) -> Result<(), AppError>
Write a block record.
Write the file footer. Must be called after all blocks.
Sourcepub fn into_inner(self) -> W
pub fn into_inner(self) -> W
Return the inner writer.
Auto Trait Implementations§
impl<W> Freeze for ContainerWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for ContainerWriter<W>where
W: RefUnwindSafe,
impl<W> Send for ContainerWriter<W>where
W: Send,
impl<W> Sync for ContainerWriter<W>where
W: Sync,
impl<W> Unpin for ContainerWriter<W>where
W: Unpin,
impl<W> UnsafeUnpin for ContainerWriter<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for ContainerWriter<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