Skip to main content

took

Function took 

Source
pub fn took(payload: &[u8]) -> Result<(), BridgeError>
Expand description

Reads the one byte status a pin write or a reset answers with.

§Arguments

  • payload - what followed the header.

§Returns

Nothing, when the bridge did it.

§Errors

BridgeError::Short when nothing came back, and BridgeError::Refused with the status when the bridge could not do it.