pub struct S3Filesystem { /* private fields */ }Expand description
S3-compatible bucket/prefix projection with virtual-directory semantics delegated to the authenticated client.
Implementations§
Source§impl S3Filesystem
impl S3Filesystem
pub fn new( client: Rc<dyn RemoteFilesystemClient>, bucket: impl Into<String>, prefix: impl Into<String>, display: impl Into<String>, read_only: bool, ) -> Result<Self, FileError>
pub fn from_client<C: RemoteFilesystemClient + 'static>( client: C, bucket: impl Into<String>, prefix: impl Into<String>, display: impl Into<String>, read_only: bool, ) -> Result<Self, FileError>
Trait Implementations§
Source§impl IFilesystem for S3Filesystem
impl IFilesystem for S3Filesystem
fn descriptor(&self) -> FilesystemDescriptor
fn stat<'a>( &'a self, context: FilesystemCallContext, path: String, ) -> FilesystemFuture<'a, FilesystemEntry>
fn read<'a>( &'a self, context: FilesystemCallContext, path: String, ) -> FilesystemFuture<'a, Vec<u8>>
fn write<'a>( &'a self, context: FilesystemCallContext, path: String, bytes: Vec<u8>, options: WriteOptions, mutation: FilesystemMutationContext, ) -> FilesystemFuture<'a, FilesystemMutation>
fn entries_page<'a>( &'a self, context: FilesystemCallContext, path: String, request: FilesystemPageRequest, ) -> FilesystemFuture<'a, FilesystemEntryPage>
fn mkdir<'a>( &'a self, context: FilesystemCallContext, path: String, options: MkdirOptions, mutation: FilesystemMutationContext, ) -> FilesystemFuture<'a, FilesystemMutation>
fn delete<'a>( &'a self, context: FilesystemCallContext, path: String, options: DeleteOptions, mutation: FilesystemMutationContext, ) -> FilesystemFuture<'a, FilesystemMutation>
fn copy<'a>( &'a self, context: FilesystemCallContext, source: String, target: String, options: CopyOptions, mutation: FilesystemMutationContext, ) -> FilesystemFuture<'a, FilesystemMutation>
fn move_entry<'a>( &'a self, context: FilesystemCallContext, source: String, target: String, options: MoveOptions, mutation: FilesystemMutationContext, ) -> FilesystemFuture<'a, FilesystemMutation>
fn close<'a>( &'a self, context: FilesystemCallContext, ) -> FilesystemFuture<'a, ()>
fn capabilities(&self) -> FilesystemCapabilities
Auto Trait Implementations§
impl !RefUnwindSafe for S3Filesystem
impl !Send for S3Filesystem
impl !Sync for S3Filesystem
impl !UnwindSafe for S3Filesystem
impl Freeze for S3Filesystem
impl Unpin for S3Filesystem
impl UnsafeUnpin for S3Filesystem
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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