pub struct RequestRegistration { /* private fields */ }Expand description
Correlation credentials for one request registration.
The credential does not keep the pending-request table alive. Its token and table identity prevent a stale handle from terminating a later request that reuses the same protocol request ID.
Implementations§
Source§impl RequestRegistration
impl RequestRegistration
Sourcepub fn request_id(&self) -> &RequestId
pub fn request_id(&self) -> &RequestId
Returns the application-level identifier used for response matching.
Sourcepub fn session_id(&self) -> SessionId
pub fn session_id(&self) -> SessionId
Returns the logical session that owns this registration.
Sourcepub fn registered_at(&self) -> Instant
pub fn registered_at(&self) -> Instant
Returns when this registration entered the pending table.
Sourcepub fn response_deadline(&self) -> Result<Option<Instant>>
pub fn response_deadline(&self) -> Result<Option<Instant>>
Returns the original response deadline, excluding bounded grace for manual response dispatch.
Trait Implementations§
Source§impl Clone for RequestRegistration
impl Clone for RequestRegistration
Auto Trait Implementations§
impl Freeze for RequestRegistration
impl RefUnwindSafe for RequestRegistration
impl Send for RequestRegistration
impl Sync for RequestRegistration
impl Unpin for RequestRegistration
impl UnsafeUnpin for RequestRegistration
impl UnwindSafe for RequestRegistration
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