#[non_exhaustive]pub struct WriteAcknowledgement {
pub replica_index: u32,
pub durability: i32,
}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.replica_index: u32§durability: i32Implementations§
Source§impl WriteAcknowledgement
impl WriteAcknowledgement
Sourcepub fn durability(&self) -> WriteDurability
pub fn durability(&self) -> WriteDurability
Returns the enum value of durability, or the default if the field is set to an invalid enum value.
Sourcepub fn set_durability(&mut self, value: WriteDurability)
pub fn set_durability(&mut self, value: WriteDurability)
Sets durability to the provided enum value.
Trait Implementations§
Source§impl Clone for WriteAcknowledgement
impl Clone for WriteAcknowledgement
impl Copy for WriteAcknowledgement
Source§impl Debug for WriteAcknowledgement
impl Debug for WriteAcknowledgement
Source§impl Default for WriteAcknowledgement
impl Default for WriteAcknowledgement
impl Eq for WriteAcknowledgement
Source§impl Hash for WriteAcknowledgement
impl Hash for WriteAcknowledgement
Source§impl Message for WriteAcknowledgement
impl Message for WriteAcknowledgement
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 WriteAcknowledgement
impl PartialEq for WriteAcknowledgement
impl StructuralPartialEq for WriteAcknowledgement
Auto Trait Implementations§
impl Freeze for WriteAcknowledgement
impl RefUnwindSafe for WriteAcknowledgement
impl Send for WriteAcknowledgement
impl Sync for WriteAcknowledgement
impl Unpin for WriteAcknowledgement
impl UnsafeUnpin for WriteAcknowledgement
impl UnwindSafe for WriteAcknowledgement
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