pub struct InvocationControl { /* private fields */ }Expand description
Adapter-supplied cancellation and timeout signals for one invocation.
A timeout is represented as a future so native, Cloudflare, tests, and other adapters can use their own clock/runtime without leaking it into the operation graph.
Implementations§
Source§impl InvocationControl
impl InvocationControl
pub const fn new() -> Self
pub fn with_cancellation(self, token: CancellationToken) -> Self
pub fn with_timeout<Timeout>(self, timeout: Timeout) -> Self
Trait Implementations§
Source§impl Default for InvocationControl
impl Default for InvocationControl
Source§fn default() -> InvocationControl
fn default() -> InvocationControl
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for InvocationControl
impl !Send for InvocationControl
impl !Sync for InvocationControl
impl !UnwindSafe for InvocationControl
impl Freeze for InvocationControl
impl Unpin for InvocationControl
impl UnsafeUnpin for InvocationControl
Blanket Implementations§
Source§impl<T> BackgroundExt for T
impl<T> BackgroundExt for T
fn background(self, task: BackgroundTask) -> Background<Self>
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