pub struct EncapsulationPacket<T> {
pub hdr: EncapsulationHeader,
pub data: T,
}Expand description
UCMM: 504 bytes max: 65535
Fields§
§hdr: EncapsulationHeader§data: Tmax length: 65511
Trait Implementations§
Source§impl<T: Debug> Debug for EncapsulationPacket<T>
impl<T: Debug> Debug for EncapsulationPacket<T>
Source§impl<T: Default> Default for EncapsulationPacket<T>
impl<T: Default> Default for EncapsulationPacket<T>
Source§fn default() -> EncapsulationPacket<T>
fn default() -> EncapsulationPacket<T>
Returns the “default value” for a type. Read more
Source§impl<T: Encode> Encode for EncapsulationPacket<T>
impl<T: Encode> Encode for EncapsulationPacket<T>
Source§fn encode<A: Encoder>(
self,
buf: &mut BytesMut,
encoder: &mut A,
) -> Result<(), A::Error>where
Self: Sized,
fn encode<A: Encoder>(
self,
buf: &mut BytesMut,
encoder: &mut A,
) -> Result<(), A::Error>where
Self: Sized,
encode by moved values
Source§fn encode_by_ref<A: Encoder>(
&self,
buf: &mut BytesMut,
encoder: &mut A,
) -> Result<(), A::Error>
fn encode_by_ref<A: Encoder>( &self, buf: &mut BytesMut, encoder: &mut A, ) -> Result<(), A::Error>
encode by references
Source§fn bytes_count(&self) -> usize
fn bytes_count(&self) -> usize
be careful to calculate the number of bytes
Auto Trait Implementations§
impl<T> Freeze for EncapsulationPacket<T>where
T: Freeze,
impl<T> RefUnwindSafe for EncapsulationPacket<T>where
T: RefUnwindSafe,
impl<T> Send for EncapsulationPacket<T>where
T: Send,
impl<T> Sync for EncapsulationPacket<T>where
T: Sync,
impl<T> Unpin for EncapsulationPacket<T>where
T: Unpin,
impl<T> UnwindSafe for EncapsulationPacket<T>where
T: UnwindSafe,
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