pub enum ReceiveReport {
Packet {
packet_index: PacketIndex,
},
Duplicate {
packet_index: PacketIndex,
},
Ack {
packet_index: PacketIndex,
},
Ping,
Pong,
Noise {
skipped: usize,
},
Corrupted,
Incomplete {
needed: Option<usize>,
},
Error(Error),
}Expand description
Result of Engine::receive.
Variants§
Packet
A packet envelope was accepted.
Fields
§
packet_index: PacketIndexPacket index decoded from the envelope.
Duplicate
A duplicate packet envelope was acknowledged but not processed again.
Fields
§
packet_index: PacketIndexDuplicate packet index.
Ack
An ACK packet was accepted.
Fields
§
packet_index: PacketIndexPacket index acknowledged by the peer.
Ping
A PING packet was accepted and a PONG was queued.
Pong
A PONG packet was accepted.
Noise
The input did not contain a valid magic prefix at offset zero.
Corrupted
The envelope integrity check failed.
Incomplete
The envelope is incomplete.
Error(Error)
The packet was valid but could not be applied to engine state.
Trait Implementations§
Source§impl Clone for ReceiveReport
impl Clone for ReceiveReport
Source§fn clone(&self) -> ReceiveReport
fn clone(&self) -> ReceiveReport
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 ReceiveReport
Source§impl Debug for ReceiveReport
impl Debug for ReceiveReport
impl Eq for ReceiveReport
Source§impl PartialEq for ReceiveReport
impl PartialEq for ReceiveReport
Source§fn eq(&self, other: &ReceiveReport) -> bool
fn eq(&self, other: &ReceiveReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReceiveReport
Auto Trait Implementations§
impl Freeze for ReceiveReport
impl RefUnwindSafe for ReceiveReport
impl Send for ReceiveReport
impl Sync for ReceiveReport
impl Unpin for ReceiveReport
impl UnsafeUnpin for ReceiveReport
impl UnwindSafe for ReceiveReport
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