pub struct IncomingPacket { /* private fields */ }Expand description
An incoming packet that has already gone through re-framing of massive packets or decryption. It is essentially a collection of bytes for a given opcode, nothing more.
Implementations§
Trait Implementations§
Source§impl Debug for IncomingPacket
impl Debug for IncomingPacket
Source§impl FromFrames for IncomingPacket
impl FromFrames for IncomingPacket
type Output = IncomingPacket
Source§fn from_frames(
frames: &[SilkroadFrame],
security: SecurityContext<'_>,
) -> Result<Self, ReframingError>
fn from_frames( frames: &[SilkroadFrame], security: SecurityContext<'_>, ) -> Result<Self, ReframingError>
Try to turn all frames into an incoming packet. Read more
Source§impl PartialEq for IncomingPacket
impl PartialEq for IncomingPacket
impl Eq for IncomingPacket
impl StructuralPartialEq for IncomingPacket
Auto Trait Implementations§
impl !Freeze for IncomingPacket
impl RefUnwindSafe for IncomingPacket
impl Send for IncomingPacket
impl Sync for IncomingPacket
impl Unpin for IncomingPacket
impl UnwindSafe for IncomingPacket
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