pub struct RemoteFsProvider { /* private fields */ }Implementations§
Source§impl RemoteFsProvider
impl RemoteFsProvider
pub fn new(config: RemoteFsConfig) -> Result<Self>
Sourcepub fn data_manifest_descriptor(
&self,
request: &DataManifestRequest,
) -> Result<DataManifestDescriptor>
pub fn data_manifest_descriptor( &self, request: &DataManifestRequest, ) -> Result<DataManifestDescriptor>
Fetch a dataset manifest descriptor through the provider-neutral data contract endpoint.
Sourcepub fn data_chunk_upload_targets(
&self,
request: &DataChunkUploadRequest,
) -> Result<Vec<DataChunkUploadTarget>>
pub fn data_chunk_upload_targets( &self, request: &DataChunkUploadRequest, ) -> Result<Vec<DataChunkUploadTarget>>
Request direct upload targets for dataset chunk objects.
Trait Implementations§
Source§impl Clone for RemoteFsProvider
impl Clone for RemoteFsProvider
Source§impl Debug for RemoteFsProvider
impl Debug for RemoteFsProvider
Source§impl FsProvider for RemoteFsProvider
impl FsProvider for RemoteFsProvider
fn open(&self, path: &Path, flags: &OpenFlags) -> Result<Box<dyn FileHandle>>
fn read<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn write<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
path: &'life1 Path,
data: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn remove_file<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<FsMetadata>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn symlink_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<FsMetadata>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn read_dir<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<Vec<DirEntry>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn canonicalize<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<PathBuf>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_dir<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_dir_all<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn remove_dir<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn remove_dir_all<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn rename<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
from: &'life1 Path,
to: &'life2 Path,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn set_readonly<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
readonly: bool,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn data_manifest_descriptor<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 DataManifestRequest,
) -> Pin<Box<dyn Future<Output = Result<DataManifestDescriptor>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn data_chunk_upload_targets<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 DataChunkUploadRequest,
) -> Pin<Box<dyn Future<Output = Result<Vec<DataChunkUploadTarget>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn data_upload_chunk<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
target: &'life1 DataChunkUploadTarget,
data: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn read_many<'life0, 'life1, 'async_trait>(
&'life0 self,
paths: &'life1 [PathBuf],
) -> Pin<Box<dyn Future<Output = Result<Vec<ReadManyEntry>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for RemoteFsProvider
impl !RefUnwindSafe for RemoteFsProvider
impl Send for RemoteFsProvider
impl Sync for RemoteFsProvider
impl Unpin for RemoteFsProvider
impl UnsafeUnpin for RemoteFsProvider
impl !UnwindSafe for RemoteFsProvider
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