Trait gabriel2::ActorRefTrait
source · pub trait ActorRefTrait {
type Actor: Handler + SSSD;
type State: SSSD;
type Error: SSSD + Error + From<Error>;
// Required methods
fn new(
name: impl AsRef<str>,
actor: Self::Actor,
state: Self::State,
buffer: usize,
) -> impl Future<Output = Result<Arc<Self>, Self::Error>>;
fn state(
&self,
) -> impl Future<Output = Result<Arc<Mutex<Self::State>>, Error>>;
}Required Associated Types§
Required Methods§
fn new( name: impl AsRef<str>, actor: Self::Actor, state: Self::State, buffer: usize, ) -> impl Future<Output = Result<Arc<Self>, Self::Error>>
fn state(&self) -> impl Future<Output = Result<Arc<Mutex<Self::State>>, Error>>
Object Safety§
This trait is not object safe.