Struct hdfs_client::WriterOptions
source · pub struct WriterOptions {
pub replica: Option<u32>,
pub checksum: Option<ChecksumTypeProto>,
pub block_size: Option<u64>,
pub perm: Option<u32>,
pub unmask: Option<u32>,
pub over_ride: bool,
}Fields§
§replica: Option<u32>§checksum: Option<ChecksumTypeProto>§block_size: Option<u64>§perm: Option<u32>§unmask: Option<u32>§over_ride: boolImplementations§
source§impl WriterOptions
impl WriterOptions
pub fn replica(self, replica: impl Into<Option<u32>>) -> Self
pub fn checksum(self, checksum: impl Into<Option<ChecksumTypeProto>>) -> Self
pub fn block_size(self, block_size: impl Into<Option<u64>>) -> Self
pub fn append<S: Read + Write, D: Read + Write>( self, path: impl AsRef<Path>, fs: &mut HDFS<S, D> ) -> Result<FileWriter<S, D>, HDFSError>
pub fn create<S: Read + Write, D: Read + Write>( self, path: impl AsRef<Path>, fs: &mut HDFS<S, D> ) -> Result<FileWriter<S, D>, HDFSError>
Trait Implementations§
source§impl Debug for WriterOptions
impl Debug for WriterOptions
source§impl Default for WriterOptions
impl Default for WriterOptions
source§fn default() -> WriterOptions
fn default() -> WriterOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for WriterOptions
impl Send for WriterOptions
impl Sync for WriterOptions
impl Unpin for WriterOptions
impl UnwindSafe for WriterOptions
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request