pub struct WriteResult<B> {
pub buf: B,
pub bytes_written: u32,
}Expand description
Result of a write operation: the buffer and actual bytes written.
Fields§
§buf: BThe original buffer (returned for reuse).
bytes_written: u32Number of bytes actually written (may be less than buffer size for non-regular files). Limited to ~2GB per operation.
Auto Trait Implementations§
impl<B> Freeze for WriteResult<B>where
B: Freeze,
impl<B> RefUnwindSafe for WriteResult<B>where
B: RefUnwindSafe,
impl<B> Send for WriteResult<B>where
B: Send,
impl<B> Sync for WriteResult<B>where
B: Sync,
impl<B> Unpin for WriteResult<B>where
B: Unpin,
impl<B> UnwindSafe for WriteResult<B>where
B: 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