Struct blaze_pk::OpaquePacket
source · [−]Expand description
Structure for packets that have been read where the contents are not know and are encoded as a vector of bytes.
Tuple Fields
0: PacketHeader
1: Vec<u8>
Implementations
sourceimpl OpaquePacket
impl OpaquePacket
sourcepub fn contents<R: PacketContent>(&self) -> CodecResult<R>
pub fn contents<R: PacketContent>(&self) -> CodecResult<R>
Reads the contents of this encoded packet and tries to decode
the R
from it.
Trait Implementations
sourceimpl Debug for OpaquePacket
impl Debug for OpaquePacket
sourceimpl<C: PacketContent> TryInto<Packet<C>> for OpaquePacket
impl<C: PacketContent> TryInto<Packet<C>> for OpaquePacket
Auto Trait Implementations
impl RefUnwindSafe for OpaquePacket
impl Send for OpaquePacket
impl Sync for OpaquePacket
impl Unpin for OpaquePacket
impl UnwindSafe for OpaquePacket
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more