Skip to main content

IdmFrame

Struct IdmFrame 

Source
pub struct IdmFrame<'a> {
    pub version: u8,
    pub final_: u8,
    pub encoding: u16,
    pub data: &'a [u8],
}
Expand description

An IDM Frame

Fields§

§version: u8

The version field. Only version 1 or 2 are currently defined, which are encoded as the values 1 and 2, respectively.

§final_: u8

The final field. This frame is the final frame containing the complete IDM PDU if this is set to 1. It is not the final frame if this is set to 0. All other values are unspecified, but you should probably close the connection if anything else is used.

§encoding: u16

The encoding field of a version 2 IDM frame. This is always set to zero for version 1 IDM frames.

§data: &'a [u8]

The data fragment carried by the IDM frame.

Trait Implementations§

Source§

impl<'a> Debug for IdmFrame<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for IdmFrame<'a>

§

impl<'a> RefUnwindSafe for IdmFrame<'a>

§

impl<'a> Send for IdmFrame<'a>

§

impl<'a> Sync for IdmFrame<'a>

§

impl<'a> Unpin for IdmFrame<'a>

§

impl<'a> UnsafeUnpin for IdmFrame<'a>

§

impl<'a> UnwindSafe for IdmFrame<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.