#[non_exhaustive]pub struct WriteConcernResult {
pub status: i32,
pub receiving_node: String,
pub replica_count: u32,
pub requested_acknowledgements: u32,
pub required_acknowledgements: u32,
pub acknowledged_nodes: Vec<String>,
pub error: String,
pub receiving_region: Option<String>,
pub outside_region_acknowledged_nodes: Vec<String>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.status: i32§receiving_node: String§replica_count: u32§requested_acknowledgements: u32§required_acknowledgements: u32§acknowledged_nodes: Vec<String>§error: String§receiving_region: Option<String>§outside_region_acknowledged_nodes: Vec<String>Implementations§
Source§impl WriteConcernResult
impl WriteConcernResult
Sourcepub fn status(&self) -> WriteConcernStatus
pub fn status(&self) -> WriteConcernStatus
Returns the enum value of status, or the default if the field is set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: WriteConcernStatus)
pub fn set_status(&mut self, value: WriteConcernStatus)
Sets status to the provided enum value.
Sourcepub fn receiving_region(&self) -> &str
pub fn receiving_region(&self) -> &str
Returns the value of receiving_region, or the default value if receiving_region is unset.
Trait Implementations§
Source§impl Clone for WriteConcernResult
impl Clone for WriteConcernResult
Source§impl Debug for WriteConcernResult
impl Debug for WriteConcernResult
Source§impl Default for WriteConcernResult
impl Default for WriteConcernResult
impl Eq for WriteConcernResult
Source§impl Hash for WriteConcernResult
impl Hash for WriteConcernResult
Source§impl Message for WriteConcernResult
impl Message for WriteConcernResult
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(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for WriteConcernResult
impl PartialEq for WriteConcernResult
impl StructuralPartialEq for WriteConcernResult
Auto Trait Implementations§
impl Freeze for WriteConcernResult
impl RefUnwindSafe for WriteConcernResult
impl Send for WriteConcernResult
impl Sync for WriteConcernResult
impl Unpin for WriteConcernResult
impl UnsafeUnpin for WriteConcernResult
impl UnwindSafe for WriteConcernResult
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