[−][src]Trait u2fframing::U2FFraming
Required methods
fn encode(&mut self, message: &[u8], buf: &mut [u8]) -> Result<usize>
Encode function.
fn decode(&mut self, buf: &[u8]) -> Result<Option<Vec<u8>>>
Decode function. Will fail in case CID and CMD doesn't match stored values.
fn set_cmd(&mut self, cmd: u8)
Set the CMD field in case this struct didn't encode the packet