pub trait ActorListener<Msg, Shutdown = Infallible> {
// Required method
fn next_msg(
&mut self,
) -> impl Future<Output = Option<ActorMsg<Msg, Shutdown>>>;
}Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<Msg, Shutdown> ActorListener<Msg, Shutdown> for UnboundedReceiver<ActorMsg<Msg, Shutdown>>
impl<Msg, Shutdown> ActorListener<Msg, Shutdown> for UnboundedReceiver<ActorMsg<Msg, Shutdown>>
UnboundedReceiver
Source§impl<Resp> ActorListener<Resp> for Interval
impl<Resp> ActorListener<Resp> for Interval
Interval