Trait OutCommandExt

Source
pub trait OutCommandExt {
    // Required methods
    fn send_with_result(
        self,
        con: &mut Connection,
    ) -> Result<MessageHandle, Error>;
    fn send(self, con: &mut Connection) -> Result<(), Error>;
}

Required Methods§

Source

fn send_with_result(self, con: &mut Connection) -> Result<MessageHandle, Error>

Adds a return_code to the command and returns if the corresponding answer is received. If an error occurs, the future will return an error.

Source

fn send(self, con: &mut Connection) -> Result<(), Error>

Sends the command without asking for an answer.

Implementors§