[][src]Struct ra_common::models::Envelope

pub struct Envelope {
    pub from: u8,
    pub to: u8,
    pub msg: Vec<u8>,
    pub slip: Slip,
}

An Envelope is a wrapper of data with some meta-data for internal routing.

Fields

from: u8to: u8msg: Vec<u8>slip: Slip

A stack-based routing slip that can be added to at any time prior to completion.

Methods

impl Envelope[src]

pub fn new(from: u8, to: u8, msg: Vec<u8>) -> Envelope[src]

pub fn new_msg_only(msg: Vec<u8>) -> Envelope[src]

Trait Implementations

impl Clone for Envelope[src]

impl Debug for Envelope[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.