MessageReply

Struct MessageReply 

Source
pub struct MessageReply<D> {
    pub reply_service: u8,
    pub status: Status,
    pub remaining_path_size: Option<u8>,
    pub data: D,
}
Expand description

message reply

Fields§

§reply_service: u8

reply service code

§status: Status

general status and extended status

§remaining_path_size: Option<u8>

only present with routing type errors

§data: D

Implementations§

Source§

impl<D> MessageReply<D>

Source

pub fn new(reply_service: u8, status: Status, data: D) -> Self

Trait Implementations§

Source§

impl<D: Debug> Debug for MessageReply<D>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'de, R> Decode<'de> for MessageReply<R>
where R: Decode<'de>,

Source§

fn decode<D>(decoder: D) -> Result<Self, D::Error>
where D: Decoder<'de>,

Source§

impl<D> MessageReplyInterface for MessageReply<D>

Source§

type Value = D

Source§

fn reply_service(&self) -> u8

Source§

fn status(&self) -> &Status

Source§

fn value(&self) -> &Self::Value

Source§

fn into_value(self) -> Self::Value

Source§

fn expect_service<E: Error>(&self, expected_service: u8) -> Result<(), E>

Auto Trait Implementations§

§

impl<D> Freeze for MessageReply<D>
where D: Freeze,

§

impl<D> RefUnwindSafe for MessageReply<D>
where D: RefUnwindSafe,

§

impl<D> Send for MessageReply<D>
where D: Send,

§

impl<D> Sync for MessageReply<D>
where D: Sync,

§

impl<D> Unpin for MessageReply<D>
where D: Unpin,

§

impl<D> UnwindSafe for MessageReply<D>
where D: UnwindSafe,

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.
Source§

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

Source§

fn vzip(self) -> V