pub struct Acknowledge {
pub sequence: u16,
}Expand description
A packet used to acknowledge a single data sequence. Serialized without OP code.
Fields§
§sequence: u16The sequence number being acknowledged.
Implementations§
Source§impl Acknowledge
impl Acknowledge
Sourcepub fn deserialize(buffer: &[u8]) -> Result<Self>
pub fn deserialize(buffer: &[u8]) -> Result<Self>
Deserializes a packet from buffer.
Trait Implementations§
Source§impl Clone for Acknowledge
impl Clone for Acknowledge
Source§fn clone(&self) -> Acknowledge
fn clone(&self) -> Acknowledge
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Acknowledge
Source§impl Debug for Acknowledge
impl Debug for Acknowledge
impl Eq for Acknowledge
Source§impl PartialEq for Acknowledge
impl PartialEq for Acknowledge
Source§fn eq(&self, other: &Acknowledge) -> bool
fn eq(&self, other: &Acknowledge) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Acknowledge
Auto Trait Implementations§
impl Freeze for Acknowledge
impl RefUnwindSafe for Acknowledge
impl Send for Acknowledge
impl Sync for Acknowledge
impl Unpin for Acknowledge
impl UnsafeUnpin for Acknowledge
impl UnwindSafe for Acknowledge
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