pub struct IncomingMessage { /* private fields */ }Expand description
Immutable inbound item; clones share one payload allocation.
Implementations§
Source§impl IncomingMessage
impl IncomingMessage
Sourcepub fn payload(&self) -> &IncomingPayload
pub fn payload(&self) -> &IncomingPayload
Borrows the complete inbound payload, including control frames.
Sourcepub fn message(&self) -> Option<&Message>
pub fn message(&self) -> Option<&Message>
Returns the business message, or None for control frames.
Sourcepub fn received_at(&self) -> SystemTime
pub fn received_at(&self) -> SystemTime
Returns the SDK receive timestamp.
Sourcepub fn session_id(&self) -> SessionId
pub fn session_id(&self) -> SessionId
Returns the originating logical session identity.
Sourcepub fn connection_id(&self) -> ConnectionId
pub fn connection_id(&self) -> ConnectionId
Returns the originating physical connection identity.
Trait Implementations§
Source§impl Clone for IncomingMessage
impl Clone for IncomingMessage
Auto Trait Implementations§
impl Forget for IncomingMessage
impl Freeze for IncomingMessage
impl Move for IncomingMessage
impl RefUnwindSafe for IncomingMessage
impl Send for IncomingMessage
impl Sync for IncomingMessage
impl Unpin for IncomingMessage
impl UnsafeUnpin for IncomingMessage
impl UnwindSafe for IncomingMessage
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