pub struct File<'a, const BLOCK_SIZE: usize = 512> { /* private fields */ }
Expand description
Virtual file object
Implementations
sourceimpl<'a, const BLOCK_SIZE: usize> File<'a, BLOCK_SIZE>
impl<'a, const BLOCK_SIZE: usize> File<'a, BLOCK_SIZE>
sourcepub fn new<D: Into<FileContent<'a, BLOCK_SIZE>>>(
name: &'a str,
data: D
) -> Result<Self, FileError>
pub fn new<D: Into<FileContent<'a, BLOCK_SIZE>>>(
name: &'a str,
data: D
) -> Result<Self, FileError>
Create a new File object with the provided data
Auto Trait Implementations
impl<'a, const BLOCK_SIZE: usize = 512> !RefUnwindSafe for File<'a, BLOCK_SIZE>
impl<'a, const BLOCK_SIZE: usize> Send for File<'a, BLOCK_SIZE>
impl<'a, const BLOCK_SIZE: usize> Sync for File<'a, BLOCK_SIZE>
impl<'a, const BLOCK_SIZE: usize> Unpin for File<'a, BLOCK_SIZE>
impl<'a, const BLOCK_SIZE: usize = 512> !UnwindSafe for File<'a, BLOCK_SIZE>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more