pub struct Response { /* private fields */ }Expand description
Owned business response that can outlive its inbound message and registration.
Implementations§
Source§impl Response
impl Response
Sourcepub fn request_id(&self) -> &RequestId
pub fn request_id(&self) -> &RequestId
Returns the associated request identifier.
Sourcepub fn received_at(&self) -> SystemTime
pub fn received_at(&self) -> SystemTime
Returns the receive timestamp recorded by the SDK.
Sourcepub fn connection_id(&self) -> ConnectionId
pub fn connection_id(&self) -> ConnectionId
Returns the physical connection identity.
Sourcepub fn into_message(self) -> Message
pub fn into_message(self) -> Message
Consumes the response and returns its body.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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