pub struct ProviderContext {
pub request_id: String,
pub deadline: Instant,
pub cancellation: CancellationToken,
pub events: Option<Sender<ProviderEvent>>,
}Expand description
Runtime metadata and cancellation propagated into a provider call.
Fields§
§request_id: StringSafe bridge request ID.
deadline: InstantAbsolute request deadline.
cancellation: CancellationTokenCooperative cancellation signal.
events: Option<Sender<ProviderEvent>>Optional bounded event sink supplied by the shared runtime.
Trait Implementations§
Source§impl Clone for ProviderContext
impl Clone for ProviderContext
Source§fn clone(&self) -> ProviderContext
fn clone(&self) -> ProviderContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProviderContext
impl RefUnwindSafe for ProviderContext
impl Send for ProviderContext
impl Sync for ProviderContext
impl Unpin for ProviderContext
impl UnsafeUnpin for ProviderContext
impl UnwindSafe for ProviderContext
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