crb_actor::runtime

Struct ActorSession

Source
pub struct ActorSession<T> {
    pub status_tx: Sender<ActorStatus>,
    /* private fields */
}

Fields§

§status_tx: Sender<ActorStatus>

Implementations§

Source§

impl<T> ActorSession<T>

Source

pub fn new() -> Self

Source

pub async fn next_envelope(&mut self) -> Option<Envelope<T>>

Trait Implementations§

Source§

impl<T> ActorContext<T> for ActorSession<T>

Source§

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

Source§

impl<T> Context for ActorSession<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> ManagedContext for ActorSession<T>

Source§

fn controller(&self) -> &Controller

Source§

fn shutdown(&mut self)

Marks a context as interrupted.

Auto Trait Implementations§

§

impl<T> Freeze for ActorSession<T>

§

impl<T> !RefUnwindSafe for ActorSession<T>

§

impl<T> Send for ActorSession<T>

§

impl<T> Sync for ActorSession<T>

§

impl<T> Unpin for ActorSession<T>

§

impl<T> !UnwindSafe for ActorSession<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.