Struct anymsg::Sender [−][src]
pub struct Sender { /* fields omitted */ }
Methods
impl Sender
[src]
impl Sender
pub fn send<Msg: 'static + Send + Sync>(
&self,
msg: Msg
) -> Result<(), SendError<AnyMsg>>
[src]
pub fn send<Msg: 'static + Send + Sync>(
&self,
msg: Msg
) -> Result<(), SendError<AnyMsg>>
pub fn hang_up(self)
[src]
pub fn hang_up(self)
Drops the sender, closing the connection. If all senders hang up, the PumpThread exits.