pub enum ProtocolId {
ResendSP,
Unknown(u32),
}Expand description
Protocol version identifier negotiated during handshake.
Variants§
ResendSP
ResendSP v1 (Sliding-window Go-Back-N ARQ with CRC-32).
Unknown(u32)
Forward-compatible representation of an unknown protocol ID proposed by a future peer.
Implementations§
Trait Implementations§
Source§impl Clone for ProtocolId
impl Clone for ProtocolId
impl Copy for ProtocolId
Source§impl Debug for ProtocolId
impl Debug for ProtocolId
Source§impl Default for ProtocolId
impl Default for ProtocolId
Source§impl Display for ProtocolId
impl Display for ProtocolId
impl Eq for ProtocolId
Source§impl From<ProtocolId> for u32
impl From<ProtocolId> for u32
Source§fn from(proto: ProtocolId) -> Self
fn from(proto: ProtocolId) -> Self
Converts to this type from the input type.
Source§impl From<u32> for ProtocolId
impl From<u32> for ProtocolId
Source§impl Hash for ProtocolId
impl Hash for ProtocolId
Source§impl PartialEq for ProtocolId
impl PartialEq for ProtocolId
impl StructuralPartialEq for ProtocolId
Auto Trait Implementations§
impl Freeze for ProtocolId
impl RefUnwindSafe for ProtocolId
impl Send for ProtocolId
impl Sync for ProtocolId
impl Unpin for ProtocolId
impl UnsafeUnpin for ProtocolId
impl UnwindSafe for ProtocolId
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