pub struct Files(/* private fields */);Expand description
Blocking crate::Files.
Implementations§
Source§impl Files
impl Files
pub fn read(&self, p: &str) -> Result<Vec<u8>>
pub fn read_text(&self, p: &str) -> Result<String>
pub fn write(&self, p: &str, data: impl Into<Vec<u8>>) -> Result<WriteInfo>
pub fn write_files(&self, files: Vec<WriteEntry>) -> Result<Vec<WriteInfo>>
pub fn list(&self, p: &str) -> Result<Vec<EntryInfo>>
pub fn exists(&self, p: &str) -> Result<bool>
pub fn get_info(&self, p: &str) -> Result<EntryInfo>
pub fn make_dir(&self, p: &str) -> Result<bool>
pub fn remove(&self, p: &str) -> Result<()>
pub fn rename(&self, old_path: &str, new_path: &str) -> Result<EntryInfo>
pub fn upload( &self, local_path: impl AsRef<Path>, remote_path: &str, ) -> Result<()>
pub fn download( &self, remote_path: &str, local_path: impl AsRef<Path>, ) -> Result<()>
pub fn upload_dir( &self, local_dir: impl AsRef<Path>, remote_dir: &str, ) -> Result<()>
pub fn download_dir( &self, remote_dir: &str, local_dir: impl AsRef<Path>, ) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Files
impl !RefUnwindSafe for Files
impl Send for Files
impl Sync for Files
impl Unpin for Files
impl UnsafeUnpin for Files
impl !UnwindSafe for Files
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].