pub struct HdfsFile { /* private fields */ }Expand description
An HDFS file
Implementations§
Source§impl HdfsFile
impl HdfsFile
pub fn fs(&self) -> &HdfsFs
pub fn path(&self) -> &str
Sourcepub fn available(&self) -> Result<i32, HdfsErr>
pub fn available(&self) -> Result<i32, HdfsErr>
Number of bytes that can be read from this file without blocking.
Sourcepub fn get_file_status(&self) -> Result<FileStatus, HdfsErr>
pub fn get_file_status(&self) -> Result<FileStatus, HdfsErr>
Get the file status, including file size, last modified time, etc
pub fn write(&self, buf: &[u8]) -> Result<i32, HdfsErr>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HdfsFile
impl RefUnwindSafe for HdfsFile
impl !Send for HdfsFile
impl !Sync for HdfsFile
impl Unpin for HdfsFile
impl UnwindSafe for HdfsFile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more