#[non_exhaustive]pub struct DoneMessage {
pub code: i32,
pub extended_ack: Vec<u8>,
}
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.code: i32
§extended_ack: Vec<u8>
Trait Implementations§
Source§impl Clone for DoneMessage
impl Clone for DoneMessage
Source§fn clone(&self) -> DoneMessage
fn clone(&self) -> DoneMessage
Returns a copy 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 DoneMessage
impl Debug for DoneMessage
Source§impl Default for DoneMessage
impl Default for DoneMessage
Source§fn default() -> DoneMessage
fn default() -> DoneMessage
Returns the “default value” for a type. Read more
Source§impl Emitable for DoneMessage
impl Emitable for DoneMessage
Source§impl<'buffer, T: AsRef<[u8]> + 'buffer> Parseable<DoneBuffer<&'buffer T>> for DoneMessage
impl<'buffer, T: AsRef<[u8]> + 'buffer> Parseable<DoneBuffer<&'buffer T>> for DoneMessage
type Error = DecodeError
Source§fn parse(buf: &DoneBuffer<&'buffer T>) -> Result<DoneMessage, DecodeError>
fn parse(buf: &DoneBuffer<&'buffer T>) -> Result<DoneMessage, DecodeError>
Deserialize the current type.
Source§impl PartialEq for DoneMessage
impl PartialEq for DoneMessage
impl Eq for DoneMessage
impl StructuralPartialEq for DoneMessage
Auto Trait Implementations§
impl Freeze for DoneMessage
impl RefUnwindSafe for DoneMessage
impl Send for DoneMessage
impl Sync for DoneMessage
impl Unpin for DoneMessage
impl UnwindSafe for DoneMessage
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)