pub struct EntryMut<'a, B: Backend> { /* private fields */ }
Expand description
A mutable entry of the archive.
An EntryMut
instance is returned by FileBuilder::build()
and gives
you the possibility to add content to the entry.
Implementations§
Source§impl<'a, B: Backend> EntryMut<'a, B>
impl<'a, B: Backend> EntryMut<'a, B>
Sourcepub fn write(&mut self, buf: &[u8]) -> ArchiveResult<usize, B>
pub fn write(&mut self, buf: &[u8]) -> ArchiveResult<usize, B>
Appends some content from buf
at the end of the entry.
Note that the entire buffer is not necessarily written. The method returns the number of bytes that were actually written.
pub fn write_all(&mut self, buf: &[u8]) -> ArchiveResult<(), B>
Auto Trait Implementations§
impl<'a, B> Freeze for EntryMut<'a, B>
impl<'a, B> !RefUnwindSafe for EntryMut<'a, B>
impl<'a, B> !Send for EntryMut<'a, B>
impl<'a, B> !Sync for EntryMut<'a, B>
impl<'a, B> Unpin for EntryMut<'a, B>
impl<'a, B> !UnwindSafe for EntryMut<'a, B>
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