Struct aether_lib::acknowledgement::Acknowledgement
source · [−]pub struct Acknowledgement {
pub ack_begin: u32,
pub ack_end: u16,
pub miss_count: u16,
pub miss: Vec<u16>,
}
Expand description
Structure to reperesent the Acknowledgement format
Fields
ack_begin: u32
The sequence number of the packet from which the Acknowledgement begins
ack_end: u16
The number of packets that this Acknowledgement includes. ACK number of
the last packet to be acknowledged relative to the ack_begin
Note: If the sequence number of a packet is
ack
, the relative sequence number toack_begin
would beack - ack_begin
.
miss_count: u16
Number of packets from ack_begin
till ack_begin + ack_end
that are
not acknowledged
miss: Vec<u16>
Vector of ack numbers (relative to ack_begin
) which are missing.
Length of the vector is miss_count
.
Trait Implementations
sourceimpl Clone for Acknowledgement
impl Clone for Acknowledgement
sourcefn clone(&self) -> Acknowledgement
fn clone(&self) -> Acknowledgement
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for Acknowledgement
impl Send for Acknowledgement
impl Sync for Acknowledgement
impl Unpin for Acknowledgement
impl UnwindSafe for Acknowledgement
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more