pub enum PacketType<'a> {
Connect(ConnectPacket),
Data(Payload<'a>),
Continue(ContinuePacket),
Close(ClosePacket),
Info(InfoPacket),
}
Expand description
Type of packet recieved.
Variants§
Connect(ConnectPacket)
Connect packet.
Data(Payload<'a>)
Data packet.
Continue(ContinuePacket)
Continue packet.
Close(ClosePacket)
Close packet.
Info(InfoPacket)
Info packet.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for PacketType<'a>
impl<'a> Clone for PacketType<'a>
Source§fn clone(&self) -> PacketType<'a>
fn clone(&self) -> PacketType<'a>
Returns a copy 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 moreAuto Trait Implementations§
impl<'a> Freeze for PacketType<'a>
impl<'a> !RefUnwindSafe for PacketType<'a>
impl<'a> Send for PacketType<'a>
impl<'a> Sync for PacketType<'a>
impl<'a> Unpin for PacketType<'a>
impl<'a> !UnwindSafe for PacketType<'a>
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