Struct webhdfs::async_client::HdfsClient [−][src]
Asynchronous WebHDFS client
Implementations
impl HdfsClient
[src]
pub async fn dir(
&self,
fostate: FOState,
path: &str
) -> FOResult<ListStatusResponse>
[src]
&self,
fostate: FOState,
path: &str
) -> FOResult<ListStatusResponse>
Get directory listing
pub async fn stat(
&self,
fostate: FOState,
path: &str
) -> FOResult<FileStatusResponse>
[src]
&self,
fostate: FOState,
path: &str
) -> FOResult<FileStatusResponse>
Get status
pub async fn open(
&self,
fostate: FOState,
path: &str,
opts: OpenOptions
) -> FOResult<Box<dyn Stream<Item = Result<Bytes>> + Unpin>>
[src]
&self,
fostate: FOState,
path: &str,
opts: OpenOptions
) -> FOResult<Box<dyn Stream<Item = Result<Bytes>> + Unpin>>
Read file data
pub async fn create<'t>(
&'t self,
fostate: FOState,
path: &'t str,
data: Data,
opts: CreateOptions
) -> FODResult<()>
[src]
&'t self,
fostate: FOState,
path: &'t str,
data: Data,
opts: CreateOptions
) -> FODResult<()>
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]
&'t self,
fostate: FOState,
path: &'t str,
data: Data,
opts: AppendOptions
) -> FODResult<()>
Append to a HDFS file
pub async fn concat(
&self,
fostate: FOState,
path: &str,
paths: Vec<String>
) -> FOResult<()>
[src]
&self,
fostate: FOState,
path: &str,
paths: Vec<String>
) -> FOResult<()>
Concatenate files
pub async fn mkdirs(
&self,
fostate: FOState,
path: &str,
opts: MkdirsOptions
) -> FOResult<bool>
[src]
&self,
fostate: FOState,
path: &str,
opts: MkdirsOptions
) -> FOResult<bool>
Make a directory
pub async fn rename(
&self,
fostate: FOState,
path: &str,
destination: String
) -> FOResult<bool>
[src]
&self,
fostate: FOState,
path: &str,
destination: String
) -> FOResult<bool>
Rename a file/directory
pub async fn create_symlink(
&self,
fostate: FOState,
path: &str,
destination: String,
opts: CreateSymlinkOptions
) -> FOResult<()>
[src]
&self,
fostate: FOState,
path: &str,
destination: String,
opts: CreateSymlinkOptions
) -> FOResult<()>
Create a Symbolic Link
pub async fn delete(
&self,
fostate: FOState,
path: &str,
opts: DeleteOptions
) -> FOResult<bool>
[src]
&self,
fostate: FOState,
path: &str,
opts: DeleteOptions
) -> FOResult<bool>
Delete a File/Directory
Auto Trait Implementations
impl !RefUnwindSafe for HdfsClient
impl !Send for HdfsClient
impl !Sync for HdfsClient
impl Unpin for HdfsClient
impl UnwindSafe for HdfsClient
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,