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§

source

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.

source

fn ignore_on_full(self) -> Result<(), DisconnectedError>

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

Implementations on Foreign Types§

source§

impl SendResultExt for Result<(), SendError>

Implementors§