pub fn wait(mut self) -> Result<Cmd::Response, CommandErrors> {
        self.wait_called = true;

        if self.error.is_some() {
            return Err(self.error.clone().unwrap());
        }

        self.process(true)?;

        // Previous process call ensures that frame is existing
        let frame = self.network.take_frame(&self.id).unwrap();
        self.protocol.assert_error(&frame)?;

        match self.command.eval_response(frame) {
            Ok(response) => Ok(response),
            Err(_) => Err(CommandResponseViolation),
        }
    }
/// Blocks until response is received and returns the response
/// Throws an error on invalid response or timeout (if configured)
Blocks until response is received and returns the response
Throws an error on invalid response or timeout (if configured)
Blocks until response is received and returns the response Throws an error on invalid response or timeout ( if configured )
pub fn wait(mut self) -> Result<Cmd::Response, CommandErrors> {
        self.wait_called = true;
        if self.error.is_some() {
            return Err(self.error.clone().unwrap());
        }
        self.process(true)?;
        // Previous process call ensures that frame is existing
        let frame = self.network.take_frame(&self.id).unwrap();
        self.protocol.assert_error(&frame)?;
        match self.command.eval_response(frame) {
            Ok(response) => Ok(response),
            Err(_) => Err(CommandResponseViolation),
        }
    }
pub fn wait ( mut self ) -> Result < Cmd :: Response , CommandErrors > { self . wait_called = true ; if self . error . is_some ( ) { return Err ( self . error . clone ( ) . unwrap ( ) ) ; } self . process ( true ) ? ; // Previous process call ensures that frame is existing let frame = self . network . take_frame ( & self . id ) . unwrap ( ) ; self . protocol . assert_error ( & frame ) ? ; match self . command . eval_response ( frame ) { Ok ( response ) => Ok ( response ) , Err ( _ ) => Err ( CommandResponseViolation ) , } }
Blocks until response is received and returns the response
Throws an error on invalid response or timeout (if configured)
Blocks until response is received and returns the response Throws an error on invalid response or timeout ( if configured )
mut self
mut self