Struct exocore_transport::messages::OutMessage [−][src]
pub struct OutMessage { pub to: Vec<Node>, pub expiration: Option<Instant>, pub connection: Option<ConnectionId>, pub envelope_builder: CapnpFrameBuilder<Owned>, }
Expand description
Message to be sent to one or more other nodes.
Fields
to: Vec<Node>
expiration: Option<Instant>
connection: Option<ConnectionId>
envelope_builder: CapnpFrameBuilder<Owned>
Implementations
impl OutMessage
[src]
impl OutMessage
[src]pub fn from_framed_message<T>(
cell: &Cell,
to_service: ServiceType,
frame: CapnpFrameBuilder<T>
) -> Result<OutMessage, Error> where
T: for<'a> MessageType<'a>,
[src]
cell: &Cell,
to_service: ServiceType,
frame: CapnpFrameBuilder<T>
) -> Result<OutMessage, Error> where
T: for<'a> MessageType<'a>,
pub fn with_to_node(self, to_node: Node) -> Self
[src]
pub fn with_to_nodes(self, nodes: Vec<Node>) -> Self
[src]
pub fn with_rendez_vous_id(self, rendez_vous_id: RendezVousId) -> Self
[src]
pub fn with_expiration(self, expiration: Option<Instant>) -> Self
[src]
pub fn with_connection(self, connection: ConnectionId) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for OutMessage
impl Send for OutMessage
impl !Sync for OutMessage
impl Unpin for OutMessage
impl UnwindSafe for OutMessage
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> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
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> UnsafeAny for T where
T: Any,
T: Any,