pub enum RemoteSupervisionEvent {
Warn(RemoteAddress, String),
Terminated(RemoteAddress, Option<String>),
Panicked(RemoteAddress, String),
State(RemoteAddress, ActorState),
}Expand description
A message which is used to report actor status to a supervisor from a remote node.
Variants§
Warn(RemoteAddress, String)
Warning, the actor could resume by itself.
Terminated(RemoteAddress, Option<String>)
Actor terminated with or without error.
Panicked(RemoteAddress, String)
Actor panicked with the given panic info.
State(RemoteAddress, ActorState)
Actor state changed.
Trait Implementations§
Source§impl Debug for RemoteSupervisionEvent
impl Debug for RemoteSupervisionEvent
Source§impl Decode for RemoteSupervisionEvent
impl Decode for RemoteSupervisionEvent
Source§const ID: u64
const ID: u64
Message identifier. A remote message should have an unique identifier so the
Handler<RemoteMessage> can dispatch the message to the proper handler. Read moreSource§fn decode(buf: Bytes, ctx: Option<&DecodeContext>) -> Result<Self, DecodeError>
fn decode(buf: Bytes, ctx: Option<&DecodeContext>) -> Result<Self, DecodeError>
Decodes the remote message from the provided buffer.
Auto Trait Implementations§
impl Freeze for RemoteSupervisionEvent
impl !RefUnwindSafe for RemoteSupervisionEvent
impl Send for RemoteSupervisionEvent
impl Sync for RemoteSupervisionEvent
impl Unpin for RemoteSupervisionEvent
impl UnsafeUnpin for RemoteSupervisionEvent
impl !UnwindSafe for RemoteSupervisionEvent
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