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: bool
Implementations§
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 Freeze for WriterOptions
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