pub struct FileSystem<S> {
pub disk: S,
}
Fields§
§disk: S
Implementations§
source§impl<S: Read + Write + Seek + IO> FileSystem<S>
impl<S: Read + Write + Seek + IO> FileSystem<S>
pub fn open(disk: S) -> Self
pub fn create(disk: S, block_size: u32) -> Result<Self, S::Error>
pub fn frame(&mut self) -> Result<FileSystemFrame<'_, S>, S::Error>
pub fn create_object( &mut self, obj_id: u128, size: u64, ) -> Result<bool, FSError<S::Error>>
pub fn read_exact( &mut self, obj_id: u128, buf: &mut [u8], off: u64, ) -> Result<(), FSError<S::Error>>
pub fn write_all( &mut self, obj_id: u128, buf: &[u8], off: u64, ) -> Result<(), FSError<S::Error>>
Auto Trait Implementations§
impl<S> Freeze for FileSystem<S>where
S: Freeze,
impl<S> ObjSafe for FileSystem<S>where
S: ObjSafe,
impl<S> RefUnwindSafe for FileSystem<S>where
S: RefUnwindSafe,
impl<S> Send for FileSystem<S>where
S: Send,
impl<S> Sync for FileSystem<S>where
S: Sync,
impl<S> Unpin for FileSystem<S>where
S: Unpin,
impl<S> UnwindSafe for FileSystem<S>where
S: 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