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.
fn ignore_on_full(self) -> Result<(), DisconnectedError>
fn ignore_on_full(self) -> Result<(), DisconnectedError>
Don’t return an Err
when the recipient is at full capacity.