pub struct FileSystem {
pub adaptor: String,
pub identifier: String,
/* private fields */
}
Expand description
Represents a file system that can be used to access data.
Fields§
§adaptor: String
§identifier: String
Implementations§
Source§impl FileSystem
impl FileSystem
Sourcepub async fn append_to_file<B, P>(&mut self, buffer: B, path: P) -> Result<()>
pub async fn append_to_file<B, P>(&mut self, buffer: B, path: P) -> Result<()>
Sourcepub async fn cancel(&mut self, copy_operation: String) -> Result<CopyStatus>
pub async fn cancel(&mut self, copy_operation: String) -> Result<CopyStatus>
Sourcepub async fn copy<P1, P2>(
&mut self,
source: P1,
destination: P2,
destination_filesystem: Option<FileSystem>,
recursive: bool,
) -> Result<String>
pub async fn copy<P1, P2>( &mut self, source: P1, destination: P2, destination_filesystem: Option<FileSystem>, recursive: bool, ) -> Result<String>
Sourcepub async fn create<S1, S2, S3>(
adaptor: S1,
location: S2,
credential: Credential,
xenon_endpoint: S3,
properties: Option<HashMap<String, String>>,
) -> Result<Self>
pub async fn create<S1, S2, S3>( adaptor: S1, location: S2, credential: Credential, xenon_endpoint: S3, properties: Option<HashMap<String, String>>, ) -> Result<Self>
Sourcepub async fn create_local<S1>(xenon_endpoint: S1) -> Result<Self>
pub async fn create_local<S1>(xenon_endpoint: S1) -> Result<Self>
Sourcepub async fn create_directories<P>(&mut self, path: P) -> Result<()>where
P: Into<FileSystemPath>,
pub async fn create_directories<P>(&mut self, path: P) -> Result<()>where
P: Into<FileSystemPath>,
Sourcepub async fn create_directory<P>(&mut self, path: P) -> Result<()>where
P: Into<FileSystemPath>,
pub async fn create_directory<P>(&mut self, path: P) -> Result<()>where
P: Into<FileSystemPath>,
Sourcepub async fn create_file<P>(&mut self, path: P) -> Result<()>where
P: Into<FileSystemPath>,
pub async fn create_file<P>(&mut self, path: P) -> Result<()>where
P: Into<FileSystemPath>,
Sourcepub async fn create_symbolic_link<P1, P2>(
&mut self,
link: P1,
target: P2,
) -> Result<()>
pub async fn create_symbolic_link<P1, P2>( &mut self, link: P1, target: P2, ) -> Result<()>
Sourcepub async fn delete<P>(&mut self, path: P, recursive: bool) -> Result<()>where
P: Into<FileSystemPath>,
pub async fn delete<P>(&mut self, path: P, recursive: bool) -> Result<()>where
P: Into<FileSystemPath>,
Sourcepub async fn get_attributes<P>(
&mut self,
path: P,
) -> Result<FileSystemAttributes>where
P: Into<FileSystemPath>,
pub async fn get_attributes<P>(
&mut self,
path: P,
) -> Result<FileSystemAttributes>where
P: Into<FileSystemPath>,
Sourcepub async fn get_credential(&mut self) -> Result<Option<Credential>>
pub async fn get_credential(&mut self) -> Result<Option<Credential>>
Sourcepub async fn get_adaptor(&mut self) -> Result<String>
pub async fn get_adaptor(&mut self) -> Result<String>
Sourcepub async fn get_available_adaptors(&mut self) -> Result<Vec<String>>
pub async fn get_available_adaptors(&mut self) -> Result<Vec<String>>
Sourcepub async fn get_location(&mut self) -> Result<String>
pub async fn get_location(&mut self) -> Result<String>
Sourcepub async fn get_separator(&mut self) -> Result<String>
pub async fn get_separator(&mut self) -> Result<String>
Sourcepub async fn get_status(&mut self, copy_operation: String) -> Result<CopyStatus>
pub async fn get_status(&mut self, copy_operation: String) -> Result<CopyStatus>
Sourcepub async fn get_working_directory(&mut self) -> Result<FileSystemPath>
pub async fn get_working_directory(&mut self) -> Result<FileSystemPath>
Sourcepub async fn list_filesystems<S1>(xenon_endpoint: S1) -> Result<Vec<String>>
pub async fn list_filesystems<S1>(xenon_endpoint: S1) -> Result<Vec<String>>
Sourcepub async fn list<P>(
&mut self,
path: P,
recursive: bool,
) -> Result<Vec<FileSystemAttributes>>where
P: Into<FileSystemPath>,
pub async fn list<P>(
&mut self,
path: P,
recursive: bool,
) -> Result<Vec<FileSystemAttributes>>where
P: Into<FileSystemPath>,
Sourcepub async fn read_from_file<P>(&mut self, path: P) -> Result<Vec<u8>>where
P: Into<FileSystemPath>,
pub async fn read_from_file<P>(&mut self, path: P) -> Result<Vec<u8>>where
P: Into<FileSystemPath>,
Sourcepub async fn read_symbolic_link<P>(&mut self, path: P) -> Result<FileSystemPath>where
P: Into<FileSystemPath>,
pub async fn read_symbolic_link<P>(&mut self, path: P) -> Result<FileSystemPath>where
P: Into<FileSystemPath>,
Sourcepub async fn set_permissions<P>(
&mut self,
path: P,
permissions: HashSet<FileSystemPermission>,
) -> Result<()>where
P: Into<FileSystemPath>,
pub async fn set_permissions<P>(
&mut self,
path: P,
permissions: HashSet<FileSystemPermission>,
) -> Result<()>where
P: Into<FileSystemPath>,
Sourcepub async fn set_working_directory<P>(&mut self, path: P) -> Result<()>where
P: Into<FileSystemPath>,
pub async fn set_working_directory<P>(&mut self, path: P) -> Result<()>where
P: Into<FileSystemPath>,
Sourcepub async fn wait_until_done(
&mut self,
copy_operation: String,
timeout: Option<u64>,
) -> Result<CopyStatus>
pub async fn wait_until_done( &mut self, copy_operation: String, timeout: Option<u64>, ) -> Result<CopyStatus>
Sourcepub async fn write_to_file<B, P>(&mut self, buffer: B, path: P) -> Result<()>
pub async fn write_to_file<B, P>(&mut self, buffer: B, path: P) -> Result<()>
Auto Trait Implementations§
impl Freeze for FileSystem
impl !RefUnwindSafe for FileSystem
impl Send for FileSystem
impl Sync for FileSystem
impl Unpin for FileSystem
impl !UnwindSafe for FileSystem
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request