[−][src]Struct mfs::Mfs
Implementations
impl Mfs
[src]
pub fn new(api: &str) -> Result<Mfs, InvalidUri>
[src]
pub async fn rm_r<'_, P: AsRef<Path>>(&'_ self, p: P) -> Result<(), OpError>
[src]
pub async fn rm<'_, P: AsRef<Path>>(&'_ self, p: P) -> Result<(), OpError>
[src]
pub async fn mkdirs<'_, P: AsRef<Path>>(&'_ self, p: P) -> Result<(), OpError>
[src]
pub async fn mkdir<'_, P: AsRef<Path>>(&'_ self, p: P) -> Result<(), OpError>
[src]
pub async fn mv<'_, PS: AsRef<Path>, PD: AsRef<Path>>(
&'_ self,
s: PS,
d: PD
) -> Result<(), OpError>
[src]
&'_ self,
s: PS,
d: PD
) -> Result<(), OpError>
pub async fn cp<'_, PS: AsRef<Path>, PD: AsRef<Path>>(
&'_ self,
s: PS,
d: PD
) -> Result<(), OpError>
[src]
&'_ self,
s: PS,
d: PD
) -> Result<(), OpError>
pub async fn ls<'_, P: AsRef<Path>>(
&'_ self,
p: P
) -> Result<Vec<PathBuf>, OpError>
[src]
&'_ self,
p: P
) -> Result<Vec<PathBuf>, OpError>
pub async fn flush<'_, P: AsRef<Path>>(&'_ self, p: P) -> Result<(), OpError>
[src]
pub fn read<'a, P: AsRef<Path>>(
&self,
s: P
) -> impl Stream<Item = Result<Bytes, OpError>>
[src]
&self,
s: P
) -> impl Stream<Item = Result<Bytes, OpError>>
pub async fn read_fully<'_, P: AsRef<Path>>(
&'_ self,
s: P
) -> Result<Vec<u8>, OpError>
[src]
&'_ self,
s: P
) -> Result<Vec<u8>, OpError>
pub async fn emplace<'_, P: AsRef<Path>, R: 'static + Read + Send + Sync>(
&'_ self,
d: P,
expected: usize,
data: R
) -> Result<(), OpError>
[src]
&'_ self,
d: P,
expected: usize,
data: R
) -> Result<(), OpError>
pub async fn stat<'_, P: AsRef<Path>>(
&'_ self,
p: P
) -> Result<Option<FilesStatResponse>, OpError>
[src]
&'_ self,
p: P
) -> Result<Option<FilesStatResponse>, OpError>
Auto Trait Implementations
impl !RefUnwindSafe for Mfs
impl Send for Mfs
impl Sync for Mfs
impl Unpin for Mfs
impl !UnwindSafe for Mfs
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,