pub struct FileDataSnapshot {
pub size: usize,
pub data: Vec<u8>,
}Expand description
Snapshot of file data (block storage)
Fields§
§size: usizeFile size in bytes
data: Vec<u8>File data as a contiguous byte array (sparse blocks are materialized as zeros)
Trait Implementations§
Source§impl Clone for FileDataSnapshot
impl Clone for FileDataSnapshot
Source§fn clone(&self) -> FileDataSnapshot
fn clone(&self) -> FileDataSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<&BlockStorage> for FileDataSnapshot
impl From<&BlockStorage> for FileDataSnapshot
Source§fn from(storage: &BlockStorage) -> Self
fn from(storage: &BlockStorage) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FileDataSnapshot
impl RefUnwindSafe for FileDataSnapshot
impl Send for FileDataSnapshot
impl Sync for FileDataSnapshot
impl Unpin for FileDataSnapshot
impl UnsafeUnpin for FileDataSnapshot
impl UnwindSafe for FileDataSnapshot
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