pub trait ActorListener<Msg, Command = Infallible> {
// Required method
fn next_msg(
&mut self,
) -> impl Future<Output = Option<ActorMsg<Msg, Command>>>;
}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 ActorListener<Result<(TcpStream, SocketAddr), Error>> for TcpListener
impl ActorListener<Result<(TcpStream, SocketAddr), Error>> for TcpListener
Source§impl<Msg, Command> ActorListener<Msg, Command> for UnboundedReceiver<ActorMsg<Msg, Command>>
UnboundedReceiver
impl<Msg, Command> ActorListener<Msg, Command> for UnboundedReceiver<ActorMsg<Msg, Command>>
UnboundedReceiver
Source§impl<Resp> ActorListener<Resp> for Interval
Interval
impl<Resp> ActorListener<Resp> for Interval
Interval