pub struct CancelManagerActor;Expand description
Native ractor actor wrapping CancelManager.
Trait Implementations§
Source§impl Actor for CancelManagerActor
impl Actor for CancelManagerActor
Source§type Msg = CancelManagerMsg
type Msg = CancelManagerMsg
The message type for this actor
Source§type State = CancelManager
type State = CancelManager
The type of state this actor manages internally
Source§async fn pre_start(
&self,
_myself: ActorRef<Self::Msg>,
_args: Self::Arguments,
) -> Result<Self::State, ActorProcessingErr>
async fn pre_start( &self, _myself: ActorRef<Self::Msg>, _args: Self::Arguments, ) -> Result<Self::State, ActorProcessingErr>
Invoked when an actor is being started by the system. Read more
Source§async fn handle(
&self,
_myself: ActorRef<Self::Msg>,
message: Self::Msg,
state: &mut Self::State,
) -> Result<(), ActorProcessingErr>
async fn handle( &self, _myself: ActorRef<Self::Msg>, message: Self::Msg, state: &mut Self::State, ) -> Result<(), ActorProcessingErr>
Handle the incoming message from the event processing loop. Unhandled panickes will be
captured and sent to the supervisor(s) Read more
Source§fn post_start(
&self,
myself: ActorRef<Self::Msg>,
state: &mut Self::State,
) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send
fn post_start( &self, myself: ActorRef<Self::Msg>, state: &mut Self::State, ) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send
Invoked after an actor has started. Read more
Source§fn post_stop(
&self,
myself: ActorRef<Self::Msg>,
state: &mut Self::State,
) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send
fn post_stop( &self, myself: ActorRef<Self::Msg>, state: &mut Self::State, ) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send
Invoked after an actor has been stopped to perform final cleanup. In the
event the actor is terminated with Signal::Kill or has self-panicked,
post_stop won’t be called. Read moreSource§fn handle_supervisor_evt(
&self,
myself: ActorRef<Self::Msg>,
message: SupervisionEvent,
state: &mut Self::State,
) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send
fn handle_supervisor_evt( &self, myself: ActorRef<Self::Msg>, message: SupervisionEvent, state: &mut Self::State, ) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send
Handle the incoming supervision event. Unhandled panics will be captured and
sent the the supervisor(s). The default supervision behavior is to exit the
supervisor on any child exit. To override this behavior, implement this function. Read more
Auto Trait Implementations§
impl Freeze for CancelManagerActor
impl RefUnwindSafe for CancelManagerActor
impl Send for CancelManagerActor
impl Sync for CancelManagerActor
impl Unpin for CancelManagerActor
impl UnsafeUnpin for CancelManagerActor
impl UnwindSafe for CancelManagerActor
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