crb_actor::tracker

Struct SupervisorSession

Source
pub struct SupervisorSession<T: Actor> { /* private fields */ }

Implementations§

Source§

impl<S: Actor> SupervisorSession<S>

Source

pub fn spawn_actor<A>( &mut self, input: A, group: S::GroupBy, ) -> <A::Context as Context>::Address
where A: Actor, A::Context: Default, S: Actor<Context = SupervisorSession<S>>,

Source§

impl<S> SupervisorSession<S>
where S: Actor<Context = SupervisorSession<S>>,

Source

pub fn spawn_trackable<B>( &mut self, trackable: B, group: S::GroupBy, ) -> <B::Context as Context>::Address

Trait Implementations§

Source§

impl<T: Actor> ActorContext<T> for SupervisorSession<T>

Source§

fn session(&mut self) -> &mut ActorSession<T>

Source§

impl<T: Actor> Context for SupervisorSession<T>

Source§

type Address = Address<T>

An address to interact with the context.
Source§

fn address(&self) -> &Self::Address

A reference to an address.
Source§

impl<T: Actor> Default for SupervisorSession<T>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<T: Actor> ManagedContext for SupervisorSession<T>

Source§

fn controller(&self) -> &Controller

Source§

fn shutdown(&mut self)

Marks a context as interrupted.
Source§

impl<A: Actor> SupervisorContext<A> for SupervisorSession<A>

Source§

fn session(&mut self) -> &mut SupervisorSession<A>

Auto Trait Implementations§

§

impl<T> Freeze for SupervisorSession<T>

§

impl<T> !RefUnwindSafe for SupervisorSession<T>

§

impl<T> Send for SupervisorSession<T>

§

impl<T> !Sync for SupervisorSession<T>

§

impl<T> Unpin for SupervisorSession<T>
where <T as Actor>::GroupBy: Unpin,

§

impl<T> !UnwindSafe for SupervisorSession<T>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.