[][src]Struct mfs::Mfs

pub struct Mfs { /* fields omitted */ }

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]

pub async fn cp<'_, PS: AsRef<Path>, PD: AsRef<Path>>(
    &'_ self,
    s: PS,
    d: PD
) -> Result<(), OpError>
[src]

pub async fn ls<'_, P: AsRef<Path>>(
    &'_ self,
    p: P
) -> Result<Vec<PathBuf>, OpError>
[src]

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]

pub async fn read_fully<'_, P: AsRef<Path>>(
    &'_ self,
    s: P
) -> Result<Vec<u8>, OpError>
[src]

pub async fn emplace<'_, P: AsRef<Path>, R: 'static + Read + Send + Sync>(
    &'_ self,
    d: P,
    expected: usize,
    data: R
) -> Result<(), OpError>
[src]

pub async fn stat<'_, P: AsRef<Path>>(
    &'_ self,
    p: P
) -> Result<Option<FilesStatResponse>, OpError>
[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,