Struct ockam_core::TransportMessage [−][src]
pub struct TransportMessage { pub version: u8, pub onward_route: Route, pub return_route: Route, pub payload: Vec<u8>, }
Expand description
A generic transport message
While this type is exposed in ockam_core (and the root ockam
crate) in order to provide a mechanism for third-party developers
to create custom transport channel routers. Casual users of ockam
should never have to interact with this type directly.
Fields
version: u8
The transport protocol version
onward_route: Route
Onward message route
return_route: Route
Return message route
This field must be populated by routers handling this message along the way.
payload: Vec<u8>
The message payload
Implementations
Trait Implementations
impl Clone for TransportMessage
[src]
impl Clone for TransportMessage
[src]fn clone(&self) -> TransportMessage
[src]
fn clone(&self) -> TransportMessage
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for TransportMessage
[src]
impl Debug for TransportMessage
[src]impl<'de> Deserialize<'de> for TransportMessage
[src]
impl<'de> Deserialize<'de> for TransportMessage
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Display for TransportMessage
[src]
impl Display for TransportMessage
[src]impl Hash for TransportMessage
[src]
impl Hash for TransportMessage
[src]impl Ord for TransportMessage
[src]
impl Ord for TransportMessage
[src]impl PartialEq<TransportMessage> for TransportMessage
[src]
impl PartialEq<TransportMessage> for TransportMessage
[src]fn eq(&self, other: &TransportMessage) -> bool
[src]
fn eq(&self, other: &TransportMessage) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &TransportMessage) -> bool
[src]
fn ne(&self, other: &TransportMessage) -> bool
[src]This method tests for !=
.
impl PartialOrd<TransportMessage> for TransportMessage
[src]
impl PartialOrd<TransportMessage> for TransportMessage
[src]fn partial_cmp(&self, other: &TransportMessage) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &TransportMessage) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Serialize for TransportMessage
[src]
impl Serialize for TransportMessage
[src]impl Eq for TransportMessage
[src]
impl StructuralEq for TransportMessage
[src]
impl StructuralPartialEq for TransportMessage
[src]
Auto Trait Implementations
impl RefUnwindSafe for TransportMessage
impl Send for TransportMessage
impl Sync for TransportMessage
impl Unpin for TransportMessage
impl UnwindSafe for TransportMessage
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,