Struct exocore_transport::messages::InMessage[][src]

pub struct InMessage {
    pub from: Node,
    pub cell_id: CellId,
    pub service_type: ServiceType,
    pub rendez_vous_id: Option<RendezVousId>,
    pub message_type: u16,
    pub connection: Option<ConnectionID>,
    pub envelope: TypedCapnpFrame<Vec<u8>, Owned>,
}

Message receive from another node.

Fields

from: Nodecell_id: CellIdservice_type: ServiceTyperendez_vous_id: Option<RendezVousId>message_type: u16connection: Option<ConnectionID>envelope: TypedCapnpFrame<Vec<u8>, Owned>

Implementations

impl InMessage[src]

pub fn from_node_and_frame<I: FrameReader<OwnedType = Vec<u8>>>(
    from: Node,
    envelope: TypedCapnpFrame<I, Owned>
) -> Result<Box<InMessage>, Error>
[src]

pub fn get_data(&self) -> Result<&[u8], Error>[src]

pub fn get_data_as_framed_message<'d, T>(
    &'d self
) -> Result<TypedCapnpFrame<&'d [u8], T>, Error> where
    T: for<'a> MessageType<'a>, 
[src]

pub fn get_reply_token(&self) -> Result<MessageReplyToken, Error>[src]

pub fn to_response_message<T>(
    &self,
    cell: &Cell,
    frame: CapnpFrameBuilder<T>
) -> Result<OutMessage, Error> where
    T: for<'a> MessageType<'a>, 
[src]

Trait Implementations

impl Clone for InMessage[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> CloneAny for T where
    T: Clone + Any

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,