pub struct InMemoryFs { /* private fields */ }Implementations§
Source§impl InMemoryFs
impl InMemoryFs
Source§impl InMemoryFs
impl InMemoryFs
pub async fn head_object( &self, path: &Path, ) -> Result<Option<HeadObject>, Error>
Trait Implementations§
Source§impl Clone for InMemoryFs
impl Clone for InMemoryFs
Source§fn clone(&self) -> InMemoryFs
fn clone(&self) -> InMemoryFs
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 Default for InMemoryFs
impl Default for InMemoryFs
Source§fn default() -> InMemoryFs
fn default() -> InMemoryFs
Returns the “default value” for a type. Read more
Source§impl Fs for InMemoryFs
impl Fs for InMemoryFs
type File = InMemoryFile
fn file_system(&self) -> FileSystemTag
async fn open_options( &self, path: &Path, options: OpenOptions, ) -> Result<Self::File, Error>
async fn create_dir_all(_path: &Path) -> Result<(), Error>
async fn list( &self, path: &Path, ) -> Result<impl Stream<Item = Result<FileMeta, Error>> + MaybeSend, Error>
async fn remove(&self, path: &Path) -> Result<(), Error>
async fn copy(&self, from: &Path, to: &Path) -> Result<(), Error>
async fn link(&self, _from: &Path, _to: &Path) -> Result<(), Error>
fn open( &self, path: &Path, ) -> impl Future<Output = Result<Self::File, Error>> + MaybeSend
Source§impl FsCas for InMemoryFs
impl FsCas for InMemoryFs
fn load_with_tag( &self, path: &Path, ) -> Pin<Box<dyn MaybeSendFuture<Output = Result<Option<(Vec<u8>, String)>, Error>> + '_>>
fn put_conditional( &self, path: &Path, payload: &[u8], content_type: Option<&str>, metadata: Option<Vec<(String, String)>>, condition: CasCondition, ) -> Pin<Box<dyn MaybeSendFuture<Output = Result<String, Error>> + '_>>
Auto Trait Implementations§
impl Freeze for InMemoryFs
impl RefUnwindSafe for InMemoryFs
impl Send for InMemoryFs
impl Sync for InMemoryFs
impl Unpin for InMemoryFs
impl UnwindSafe for InMemoryFs
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F> DynFs for F
impl<F> DynFs for F
fn file_system(&self) -> FileSystemTag
fn open_options<'s, 'path>(
&'s self,
path: &'path Path,
options: OpenOptions,
) -> Pin<Box<dyn MaybeSendFuture<Output = Result<Box<dyn DynFile>, Error>> + 's>>where
'path: 's,
fn create_dir_all<'s, 'path>(
&'s self,
path: &'path Path,
) -> Pin<Box<dyn MaybeSendFuture<Output = Result<(), Error>> + 's>>where
'path: 's,
fn list<'s, 'path>(
&'s self,
path: &'path Path,
) -> Pin<Box<dyn MaybeSendFuture<Output = Result<Pin<Box<dyn MaybeSendStream<Item = Result<FileMeta, Error>> + 's>>, Error>> + 's>>where
'path: 's,
fn remove<'s, 'path>(
&'s self,
path: &'path Path,
) -> Pin<Box<dyn MaybeSendFuture<Output = Result<(), Error>> + 's>>where
'path: 's,
fn copy<'s, 'path>(
&'s self,
from: &'path Path,
to: &'path Path,
) -> Pin<Box<dyn MaybeSendFuture<Output = Result<(), Error>> + 's>>where
'path: 's,
fn link<'s, 'path>(
&'s self,
from: &'path Path,
to: &'path Path,
) -> Pin<Box<dyn MaybeSendFuture<Output = Result<(), Error>> + 's>>where
'path: 's,
fn open<'s, 'path: 's>( &'s self, path: &'path Path, ) -> Pin<Box<dyn MaybeSendFuture<Output = Result<Box<dyn DynFile>, Error>> + 's>>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more