pub struct GoogleDriveFilesystem { /* private fields */ }Expand description
Google Drive folder projection. The root is a provider-owned stable ID, not a user-visible URL or credential.
Implementations§
Source§impl GoogleDriveFilesystem
impl GoogleDriveFilesystem
pub fn new( client: Rc<dyn RemoteFilesystemClient>, root_id: impl Into<String>, display: impl Into<String>, read_only: bool, ) -> Result<Self, FileError>
pub fn from_client<C: RemoteFilesystemClient + 'static>( client: C, root_id: impl Into<String>, display: impl Into<String>, read_only: bool, ) -> Result<Self, FileError>
Trait Implementations§
Source§impl IFilesystem for GoogleDriveFilesystem
impl IFilesystem for GoogleDriveFilesystem
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 GoogleDriveFilesystem
impl !Send for GoogleDriveFilesystem
impl !Sync for GoogleDriveFilesystem
impl !UnwindSafe for GoogleDriveFilesystem
impl Freeze for GoogleDriveFilesystem
impl Unpin for GoogleDriveFilesystem
impl UnsafeUnpin for GoogleDriveFilesystem
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