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§
Sourcefn send_with_result(self, con: &mut Connection) -> Result<MessageHandle, Error>
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.