Struct ockam_core::TransportMessageV1
source · pub struct TransportMessageV1 {
pub version: u8,
pub onward_route: Route,
pub return_route: Route,
pub payload: Vec<u8>,
}
Expand description
This is version 1 of the transport message without a tracing_context field
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§
source§impl Clone for TransportMessageV1
impl Clone for TransportMessageV1
source§fn clone(&self) -> TransportMessageV1
fn clone(&self) -> TransportMessageV1
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TransportMessageV1
impl Debug for TransportMessageV1
source§impl Decodable for TransportMessageV1
impl Decodable for TransportMessageV1
source§impl Encodable for TransportMessageV1
impl Encodable for TransportMessageV1
source§impl PartialEq for TransportMessageV1
impl PartialEq for TransportMessageV1
source§fn eq(&self, other: &TransportMessageV1) -> bool
fn eq(&self, other: &TransportMessageV1) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TransportMessageV1
impl Message for TransportMessageV1
impl StructuralPartialEq for TransportMessageV1
Auto Trait Implementations§
impl Freeze for TransportMessageV1
impl RefUnwindSafe for TransportMessageV1
impl Send for TransportMessageV1
impl Sync for TransportMessageV1
impl Unpin for TransportMessageV1
impl UnwindSafe for TransportMessageV1
Blanket Implementations§
source§impl<D> AsyncTryClone for D
impl<D> AsyncTryClone for D
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more