Trait tonari_actor::SendResultExt
source · pub trait SendResultExt {
// Required methods
fn on_full<F: FnOnce(&'static str, Priority)>(
self,
func: F
) -> Result<(), DisconnectedError>;
fn ignore_on_full(self) -> Result<(), DisconnectedError>;
}
Required Methods§
sourcefn on_full<F: FnOnce(&'static str, Priority)>(
self,
func: F
) -> Result<(), DisconnectedError>
fn on_full<F: FnOnce(&'static str, Priority)>( self, func: F ) -> Result<(), DisconnectedError>
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.
sourcefn 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.