pub struct FsServerDefaultsProto {
pub block_size: u64,
pub bytes_per_checksum: u32,
pub write_packet_size: u32,
pub replication: u32,
pub file_buffer_size: u32,
pub encrypt_data_transfer: Option<bool>,
pub trash_interval: Option<u64>,
pub checksum_type: Option<i32>,
pub key_provider_uri: Option<String>,
pub policy_id: Option<u32>,
}
Expand description
HDFS Server Defaults
Fields§
§block_size: u64
§bytes_per_checksum: u32
§write_packet_size: u32
§replication: u32
Actually a short - only 16 bits used
file_buffer_size: u32
§encrypt_data_transfer: Option<bool>
§trash_interval: Option<u64>
§checksum_type: Option<i32>
§key_provider_uri: Option<String>
§policy_id: Option<u32>
Implementations§
Source§impl FsServerDefaultsProto
impl FsServerDefaultsProto
Sourcepub fn encrypt_data_transfer(&self) -> bool
pub fn encrypt_data_transfer(&self) -> bool
Returns the value of encrypt_data_transfer
, or the default value if encrypt_data_transfer
is unset.
Sourcepub fn trash_interval(&self) -> u64
pub fn trash_interval(&self) -> u64
Returns the value of trash_interval
, or the default value if trash_interval
is unset.
Sourcepub fn checksum_type(&self) -> ChecksumTypeProto
pub fn checksum_type(&self) -> ChecksumTypeProto
Returns the enum value of checksum_type
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_checksum_type(&mut self, value: ChecksumTypeProto)
pub fn set_checksum_type(&mut self, value: ChecksumTypeProto)
Sets checksum_type
to the provided enum value.
Sourcepub fn key_provider_uri(&self) -> &str
pub fn key_provider_uri(&self) -> &str
Returns the value of key_provider_uri
, or the default value if key_provider_uri
is unset.
Trait Implementations§
Source§impl Clone for FsServerDefaultsProto
impl Clone for FsServerDefaultsProto
Source§fn clone(&self) -> FsServerDefaultsProto
fn clone(&self) -> FsServerDefaultsProto
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FsServerDefaultsProto
impl Debug for FsServerDefaultsProto
Source§impl Default for FsServerDefaultsProto
impl Default for FsServerDefaultsProto
Source§impl Message for FsServerDefaultsProto
impl Message for FsServerDefaultsProto
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for FsServerDefaultsProto
impl PartialEq for FsServerDefaultsProto
impl StructuralPartialEq for FsServerDefaultsProto
Auto Trait Implementations§
impl Freeze for FsServerDefaultsProto
impl RefUnwindSafe for FsServerDefaultsProto
impl Send for FsServerDefaultsProto
impl Sync for FsServerDefaultsProto
impl Unpin for FsServerDefaultsProto
impl UnwindSafe for FsServerDefaultsProto
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