Skip to main content

CastInfo

Trait CastInfo 

Source
pub trait CastInfo {
    // Required methods
    fn cast_point(&self) -> Point;
    fn sender(&self) -> ActorAddr;
}

Required Methods§

Source

fn cast_point(&self) -> Point

Get the cast rank and cast shape. If something wasn’t explicitly sent via a cast, represent it as the only member of a zero-dimensional cast shape, which is the same as a singleton.

Source

fn sender(&self) -> ActorAddr

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<A: Actor> CastInfo for Context<'_, A>

Implementors§