Struct exocore_transport::messages::OutMessage
source · pub struct OutMessage {
pub destination: Option<Node>,
pub expiration: Option<Instant>,
pub connection: Option<ConnectionId>,
pub envelope_builder: CapnpFrameBuilder<Owned>,
pub stream: Option<MessageStream>,
}
Expand description
Message to be sent to one or more other nodes.
Fields§
§destination: Option<Node>
§expiration: Option<Instant>
§connection: Option<ConnectionId>
§envelope_builder: CapnpFrameBuilder<Owned>
§stream: Option<MessageStream>
Implementations§
source§impl OutMessage
impl OutMessage
pub fn from_framed_message<T>( cell: &Cell, service: ServiceType, frame: CapnpFrameBuilder<T> ) -> Result<OutMessage, Error>where T: MessageType,
pub fn with_destination(self, node: Node) -> Self
pub fn with_rdv(self, rendez_vous_id: RendezVousId) -> Self
pub fn with_stream(self, stream: MessageStream) -> Self
pub fn with_expiration(self, expiration: Option<Instant>) -> Self
pub fn with_connection(self, connection: ConnectionId) -> Self
pub fn with_opt_connection(self, connection: Option<ConnectionId>) -> Self
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§
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