pub enum Supervisor<A>where
A: Actor,{
Set(Recipient<SupervisionEvent<A>>),
Unset,
}Expand description
A message which is used to set/unset a supervisor.
Handler<Supervisor<A>> is implemented for all actors automatically.
Variants§
Trait Implementations§
Source§impl<A> Debug for Supervisor<A>where
A: Actor,
impl<A> Debug for Supervisor<A>where
A: Actor,
Source§impl<A> Decode for Supervisor<A>
Available on crate feature ipc only.
impl<A> Decode for Supervisor<A>
Available on crate feature
ipc only.Source§fn decode(
buf: Bytes,
ctx: Option<&dyn DecodeContext>,
) -> Result<Self, DecodeError>
fn decode( buf: Bytes, ctx: Option<&dyn DecodeContext>, ) -> Result<Self, DecodeError>
Decodes the message from the provided buffer.
Source§impl<A> Encode for Supervisor<A>
Available on crate feature ipc only.
impl<A> Encode for Supervisor<A>
Available on crate feature
ipc only.Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the number of bytes this message will encode to.
Source§fn encode(
&self,
buf: &mut BytesMut,
ctx: Option<&dyn EncodeContext>,
) -> Result<(), EncodeError>
fn encode( &self, buf: &mut BytesMut, ctx: Option<&dyn EncodeContext>, ) -> Result<(), EncodeError>
Encodes the message into the provided buffer. Read more
Source§fn encode_to_bytes(
&self,
ctx: Option<&dyn EncodeContext>,
) -> Result<Bytes, EncodeError>
fn encode_to_bytes( &self, ctx: Option<&dyn EncodeContext>, ) -> Result<Bytes, EncodeError>
Encodes the message into a freshly allocated
Bytes.Source§impl<A> Handler<Supervisor<A>> for A
impl<A> Handler<Supervisor<A>> for A
Source§impl<A> Message for Supervisor<A>where
A: Actor,
impl<A> Message for Supervisor<A>where
A: Actor,
Source§impl<A> MessageId for Supervisor<A>
Available on crate feature identifier only.
impl<A> MessageId for Supervisor<A>
Available on crate feature
identifier only.Source§impl<A> StableId for Supervisor<A>
Available on crate feature identifier only.
impl<A> StableId for Supervisor<A>
Available on crate feature
identifier only.const TYPE_ID: StableTypeId
Auto Trait Implementations§
impl<A> Freeze for Supervisor<A>
impl<A> !RefUnwindSafe for Supervisor<A>
impl<A> Send for Supervisor<A>
impl<A> Sync for Supervisor<A>
impl<A> Unpin for Supervisor<A>
impl<A> UnsafeUnpin for Supervisor<A>
impl<A> !UnwindSafe for Supervisor<A>
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