pub struct LocalFs<A> { /* private fields */ }
Expand description
A struct for managing the part of a blocktree stored in the local filesystem.
Implementations§
Trait Implementations§
source§impl<A: 'static + Authorizer + Send + Sync> FsProvider for LocalFs<A>
impl<A: 'static + Authorizer + Send + Sync> FsProvider for LocalFs<A>
type LookupFut<'c> = impl Send + Future<Output = Result<LookupReply, Error>> + 'c
fn lookup<'c>( &'c self, from: &'c Arc<BlockPath>, msg: Lookup<'c> ) -> Self::LookupFut<'c>
type CreateFut<'c> = impl Send + Future<Output = Result<CreateReply, Error>> + 'c
fn create<'c>( &'c self, from: &'c Arc<BlockPath>, msg: Create<'c> ) -> Self::CreateFut<'c>
type OpenFut<'c> = impl Send + Future<Output = Result<OpenReply, Error>> + 'c
fn open<'c>(&'c self, from: &'c Arc<BlockPath>, msg: Open) -> Self::OpenFut<'c>
type ReadGuard = BufGuard
type ReadFut<'c> = impl Send + Future<Output = Result<<LocalFs<A> as FsProvider>::ReadGuard, Error>> + 'c
source§fn read<'c>(&'c self, from: &'c Arc<BlockPath>, msg: Read) -> Self::ReadFut<'c>
fn read<'c>(&'c self, from: &'c Arc<BlockPath>, msg: Read) -> Self::ReadFut<'c>
Reads from the file specified in the given message. Read more
type WriteFut<'r> = impl Send + Future<Output = Result<WriteReply, Error>> + 'r
fn write<'c>( &'c self, from: &'c Arc<BlockPath>, write: Write<&'c [u8]> ) -> Self::WriteFut<'c>
type FlushFut<'c> = impl Send + Future<Output = Result<(), Error>> + 'c
fn flush<'c>( &'c self, from: &'c Arc<BlockPath>, msg: Flush ) -> Self::FlushFut<'c>
type ReadDirFut<'c> = impl Send + Future<Output = Result<ReadDirReply, Error>> + 'c
fn read_dir<'c>( &'c self, from: &'c Arc<BlockPath>, msg: ReadDir ) -> Self::ReadDirFut<'c>
type LinkFut<'c> = impl Send + Future<Output = Result<LinkReply, Error>> + 'c
fn link<'c>( &'c self, from: &'c Arc<BlockPath>, msg: Link<'c> ) -> Self::LinkFut<'c>
type UnlinkFut<'c> = impl Send + Future<Output = Result<(), Error>> + 'c
fn unlink<'c>( &'c self, from: &'c Arc<BlockPath>, msg: Unlink<'c> ) -> Self::UnlinkFut<'c>
type ReadMetaFut<'c> = impl Send + Future<Output = Result<ReadMetaReply, Error>> + 'c
fn read_meta<'c>( &'c self, from: &'c Arc<BlockPath>, msg: ReadMeta ) -> Self::ReadMetaFut<'c>
type WriteMetaFut<'c> = impl Send + Future<Output = Result<WriteMetaReply, Error>> + 'c
fn write_meta<'c>( &'c self, from: &'c Arc<BlockPath>, msg: WriteMeta ) -> Self::WriteMetaFut<'c>
type AllocateFut<'c> = impl Send + Future<Output = Result<(), Error>> + 'c
fn allocate<'c>( &'c self, from: &'c Arc<BlockPath>, msg: Allocate ) -> Self::AllocateFut<'c>
type CloseFut<'c> = impl Send + Future<Output = Result<(), Error>> + 'c
fn close<'c>( &'c self, from: &'c Arc<BlockPath>, msg: Close ) -> Self::CloseFut<'c>
type ForgetFut<'c> = impl Send + Future<Output = Result<(), Error>> + 'c
fn forget<'c>( &'c self, from: &'c Arc<BlockPath>, msg: Forget ) -> Self::ForgetFut<'c>
type LockFut<'c> = Ready<Result<(), Error>>
fn lock<'c>( &'c self, _from: &'c Arc<BlockPath>, _msg: Lock ) -> Self::LockFut<'c>
type UnlockFut<'c> = Ready<Result<(), Error>>
fn unlock<'c>( &'c self, _from: &'c Arc<BlockPath>, _msg: Unlock ) -> Self::UnlockFut<'c>
type AddReacapFut<'c> = impl Send + Future<Output = Result<(), Error>> + 'c
fn add_readcap<'c>( &'c self, from: &'c Arc<BlockPath>, msg: AddReadcap ) -> Self::AddReacapFut<'c>
type GrantAccessFut<'c> = impl Send + Future<Output = Result<(), Error>> + 'c
fn grant_access<'c>( &'c self, from: &'c Arc<BlockPath>, msg: GrantAccess ) -> Self::GrantAccessFut<'c>
impl<A: Sync> Sync for LocalFs<A>
Auto Trait Implementations§
impl<A> !RefUnwindSafe for LocalFs<A>
impl<A> Send for LocalFs<A>where A: Send,
impl<A> Unpin for LocalFs<A>where A: Unpin,
impl<A> !UnwindSafe for LocalFs<A>
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