pub fn send<Cmd>(&'a self, command: Cmd) -> Result<Future<N, C, P, Cmd>, CommandErrors>
    where
        Cmd: Command<P::FrameType>,
    {
        let id = self.network.send(command.encode())?;

        Ok(Future::new(
            id,
            command,
            self.network.get_protocol(),
            &self.network,
            Timeout::new(self.clock, self.timeout_duration)?,
        ))
    }
/// Sends the given command non-blocking
Sends the given command non-blocking
Sends the given command non - blocking
pub fn send<Cmd>(&'a self, command: Cmd) -> Result<Future<N, C, P, Cmd>, CommandErrors>
    where
        Cmd: Command<P::FrameType>,
    {
        let id = self.network.send(command.encode())?;
        Ok(Future::new(
            id,
            command,
            self.network.get_protocol(),
            &self.network,
            Timeout::new(self.clock, self.timeout_duration)?,
        ))
    }
pub fn send < Cmd > ( & ' a self , command : Cmd ) -> Result < Future < N , C , P , Cmd > , CommandErrors > where Cmd : Command < P :: FrameType > , { let id = self . network . send ( command . encode ( ) ) ? ; Ok ( Future :: new ( id , command , self . network . get_protocol ( ) , & self . network , Timeout :: new ( self . clock , self . timeout_duration ) ? , ) ) }
Sends the given command non-blocking
Sends the given command non - blocking
&'a self
command
Cmd
&'a self
command
Cmd