pub struct ReadResponse { /* private fields */ }Expand description
Response data from crate::AsyncFilesystem::read operation
Implementations§
Source§impl ReadResponse
impl ReadResponse
Sourcepub fn new(data: Vec<u8>) -> ReadResponse
pub fn new(data: Vec<u8>) -> ReadResponse
Creates a new ReadResponse with a specified buffer.
Creates a ReadResponse backed by a slice of shared data without copying it.
The requested range is clamped to the bounds of data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReadResponse
impl RefUnwindSafe for ReadResponse
impl Send for ReadResponse
impl Sync for ReadResponse
impl Unpin for ReadResponse
impl UnsafeUnpin for ReadResponse
impl UnwindSafe for ReadResponse
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