pub struct InboundPacket {
pub client_id: Option<ClientId>,
pub remote_addr: SocketAddr,
pub bytes: Vec<u8>,
}Expand description
Inbound packet before wire decoding.
Fields§
§client_id: Option<ClientId>Known client id for remote_addr, if the transport has one registered.
remote_addr: SocketAddrAddress the datagram came from.
bytes: Vec<u8>Encoded bytes.
Trait Implementations§
Source§impl Clone for InboundPacket
impl Clone for InboundPacket
Source§fn clone(&self) -> InboundPacket
fn clone(&self) -> InboundPacket
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 moreSource§impl Debug for InboundPacket
impl Debug for InboundPacket
impl Eq for InboundPacket
Source§impl PartialEq for InboundPacket
impl PartialEq for InboundPacket
impl StructuralPartialEq for InboundPacket
Auto Trait Implementations§
impl Freeze for InboundPacket
impl RefUnwindSafe for InboundPacket
impl Send for InboundPacket
impl Sync for InboundPacket
impl Unpin for InboundPacket
impl UnsafeUnpin for InboundPacket
impl UnwindSafe for InboundPacket
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