pub enum ControlPacketV2 {
Init(StreamId, EndpointId, RemoteInfo),
Data(StreamId, Vec<u8>),
Refused(StreamId),
End(StreamId),
Ping(u32, DateTime<Utc>, Option<String>),
Pong(u32, DateTime<Utc>),
}
Variants§
Init(StreamId, EndpointId, RemoteInfo)
Data(StreamId, Vec<u8>)
Refused(StreamId)
End(StreamId)
Ping(u32, DateTime<Utc>, Option<String>)
Pong(u32, DateTime<Utc>)
Trait Implementations§
Source§impl Clone for ControlPacketV2
impl Clone for ControlPacketV2
Source§fn clone(&self) -> ControlPacketV2
fn clone(&self) -> ControlPacketV2
Returns a duplicate 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 ControlPacketV2
impl Debug for ControlPacketV2
Source§impl<'de> Deserialize<'de> for ControlPacketV2
impl<'de> Deserialize<'de> for ControlPacketV2
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ControlPacketV2
impl Display for ControlPacketV2
Source§impl PartialEq for ControlPacketV2
impl PartialEq for ControlPacketV2
Source§impl Serialize for ControlPacketV2
impl Serialize for ControlPacketV2
impl Eq for ControlPacketV2
impl StructuralPartialEq for ControlPacketV2
Auto Trait Implementations§
impl Freeze for ControlPacketV2
impl RefUnwindSafe for ControlPacketV2
impl Send for ControlPacketV2
impl Sync for ControlPacketV2
impl Unpin for ControlPacketV2
impl UnwindSafe for ControlPacketV2
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