Struct mfio_netfs::NetworkFs
source · pub struct NetworkFs { /* private fields */ }
Implementations§
source§impl NetworkFs
impl NetworkFs
pub fn try_new(addr: SocketAddr) -> Result<Self>
sourcepub fn with_fs(
addr: SocketAddr,
fs: Arc<NativeRt>,
cancel_ops_on_drop: bool
) -> Result<Self>
pub fn with_fs( addr: SocketAddr, fs: Arc<NativeRt>, cancel_ops_on_drop: bool ) -> Result<Self>
Create a new network FS to the provided target.
Arguments
addr
address to connect to.fs
filesystem instance to use.cancel_ops_on_drop
whether to issue global cancellation to all outstanding operations when drop is called. This is required when usingcfg(mfio_assume_linear_types)
in order to prevent panic upon dropping the network filesystem.
Trait Implementations§
source§impl Fs for NetworkFs
impl Fs for NetworkFs
type DirHandle<'a> = NetworkFsDir
source§fn current_dir(&self) -> &Self::DirHandle<'_>
fn current_dir(&self) -> &Self::DirHandle<'_>
Gets a directory handle representing current working directory. Read more
fn open<'a>( &'a self, path: &'a Path, options: OpenOptions ) -> <Self::DirHandle<'a> as DirHandle>::OpenFileFuture<'a>
source§impl IoBackend for NetworkFs
impl IoBackend for NetworkFs
type Backend = dyn Future<Output = ()> + Send
source§fn polling_handle(&self) -> Option<PollingHandle<'_>>
fn polling_handle(&self) -> Option<PollingHandle<'_>>
Gets handle to the backing event system. Read more
source§fn get_backend(&self) -> BackendHandle<'_, Self::Backend>
fn get_backend(&self) -> BackendHandle<'_, Self::Backend>
Acquires exclusive handle to IO backend. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for NetworkFs
impl Send for NetworkFs
impl Sync for NetworkFs
impl Unpin for NetworkFs
impl !UnwindSafe for NetworkFs
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, Handle> IoBackendExt<Handle> for T
impl<T, Handle> IoBackendExt<Handle> for T
source§fn with_backend<F>(
&self,
future: F
) -> (WithBackend<'_, Self::Backend, F>, Option<PollingHandle<'_>>)where
F: Future,
fn with_backend<F>(
&self,
future: F
) -> (WithBackend<'_, Self::Backend, F>, Option<PollingHandle<'_>>)where
F: Future,
Builds a composite future that also polls the backend future. Read more