pub enum CancelManagerMsg {
Register {
request_id: String,
token: CancellationToken,
},
Cancel {
request_id: String,
reply: Sender<CancelResponse>,
},
Complete {
request_id: String,
},
GetActiveCount {
reply: Sender<usize>,
},
}Expand description
Message enum for the CancelManager actor.
Variants§
Register
Register a cancellation token for a request.
Cancel
Cancel a request by ID.
Complete
Clean up after a request completes normally.
GetActiveCount
Query active count.
Auto Trait Implementations§
impl Freeze for CancelManagerMsg
impl !RefUnwindSafe for CancelManagerMsg
impl Send for CancelManagerMsg
impl Sync for CancelManagerMsg
impl Unpin for CancelManagerMsg
impl UnsafeUnpin for CancelManagerMsg
impl !UnwindSafe for CancelManagerMsg
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage