Trait tonari_actor::SendResultExt[][src]

pub trait SendResultExt {
    fn on_full<F: FnOnce(&'static str)>(
        self,
        func: F
    ) -> Result<(), DisconnectedError>;
fn ignore_on_full(self) -> Result<(), DisconnectedError>; }

Required methods

Don’t return an Err when the recipient is at full capacity, run func(receiver_name) in such a case instead. receiver_name is the name of the intended recipient.

Don’t return an Err when the recipient is at full capacity.

Implementations on Foreign Types

Implementors