[−][src]Struct webhdfs::sync_client::SyncHdfsClient
HDFS Connection data, etc.
Methods
impl SyncHdfsClient
[src]
pub fn from_async(acx: HdfsClient) -> Result<Self>
[src]
pub fn get_file<W: Write>(&self, input: &str, output: &mut W) -> Result<()>
[src]
Get a file (read it from hdfs and save to local fs)
pub fn dir(&self, path: &str) -> Result<ListStatusResponse>
[src]
Get directory listing
pub fn stat(&self, path: &str) -> Result<FileStatusResponse>
[src]
Stat a file /dir
pub fn concat(&self, path: &str, paths: Vec<String>) -> Result<()>
[src]
Concat File(s)
pub fn mkdirs(&self, path: &str, opts: MkdirsOptions) -> Result<bool>
[src]
Make a Directory
pub fn rename(&self, path: &str, destination: String) -> Result<bool>
[src]
Rename a file/directory
pub fn create_symlink(
&self,
path: &str,
destination: String,
opts: CreateSymlinkOptions
) -> Result<()>
[src]
&self,
path: &str,
destination: String,
opts: CreateSymlinkOptions
) -> Result<()>
Create a Symbolic Link
pub fn delete(&self, path: &str, opts: DeleteOptions) -> Result<bool>
[src]
Delete a File/Directory
Trait Implementations
impl Clone for SyncHdfsClient
[src]
fn clone(&self) -> SyncHdfsClient
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl !Send for SyncHdfsClient
impl Unpin for SyncHdfsClient
impl !Sync for SyncHdfsClient
impl !UnwindSafe for SyncHdfsClient
impl !RefUnwindSafe for SyncHdfsClient
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,