Trait gabriel2::ActorTrait
source · pub trait ActorTrait {
type Message: SSSD;
type Response: SSSD;
type Error: SSSD + Error + From<Error>;
// Required methods
fn ask(
&self,
msg: Self::Message,
) -> impl Future<Output = Result<Self::Response, Self::Error>>;
fn send(
&self,
msg: Self::Message,
) -> impl Future<Output = Result<(), Error>>;
fn stop(&self) -> impl Future<Output = Result<(), Self::Error>>;
}Required Associated Types§
Required Methods§
fn ask( &self, msg: Self::Message, ) -> impl Future<Output = Result<Self::Response, Self::Error>>
fn send(&self, msg: Self::Message) -> impl Future<Output = Result<(), Error>>
fn stop(&self) -> impl Future<Output = Result<(), Self::Error>>
Object Safety§
This trait is not object safe.