Struct webhdfs::async_client::HdfsClient[][src]

pub struct HdfsClient { /* fields omitted */ }

Asynchronous WebHDFS client

Implementations

impl HdfsClient[src]

pub async fn dir(
    &self,
    fostate: FOState,
    path: &str
) -> FOResult<ListStatusResponse>
[src]

Get directory listing

pub async fn stat(
    &self,
    fostate: FOState,
    path: &str
) -> FOResult<FileStatusResponse>
[src]

Get status

pub async fn open(
    &self,
    fostate: FOState,
    path: &str,
    opts: OpenOptions
) -> FOResult<Box<dyn Stream<Item = Result<Bytes>> + Unpin>>
[src]

Read file data

pub async fn create<'t>(
    &'t self,
    fostate: FOState,
    path: &'t str,
    data: Data,
    opts: CreateOptions
) -> FODResult<()>
[src]

Create a HDFS file and write some data

pub async fn append<'t>(
    &'t self,
    fostate: FOState,
    path: &'t str,
    data: Data,
    opts: AppendOptions
) -> FODResult<()>
[src]

Append to a HDFS file

pub async fn concat(
    &self,
    fostate: FOState,
    path: &str,
    paths: Vec<String>
) -> FOResult<()>
[src]

Concatenate files

pub async fn mkdirs(
    &self,
    fostate: FOState,
    path: &str,
    opts: MkdirsOptions
) -> FOResult<bool>
[src]

Make a directory

pub async fn rename(
    &self,
    fostate: FOState,
    path: &str,
    destination: String
) -> FOResult<bool>
[src]

Rename a file/directory

Create a Symbolic Link

pub async fn delete(
    &self,
    fostate: FOState,
    path: &str,
    opts: DeleteOptions
) -> FOResult<bool>
[src]

Delete a File/Directory

Auto Trait Implementations

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> Instrument for T[src]

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

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.