pub struct SchemeReport {
pub schemes: u8,
}Expand description
Security 0 Scheme Report (0x98 0x05).
Fields§
§schemes: u8The schemes field.
Implementations§
Source§impl SchemeReport
impl SchemeReport
Sourcepub fn parse(p: &[u8]) -> Result<Self, ParseError>
pub fn parse(p: &[u8]) -> Result<Self, ParseError>
Parses the payload after the command id. Extra trailing bytes (newer versions) are ignored.
Sourcepub fn encode_payload(&self, w: &mut Vec<u8>)
pub fn encode_payload(&self, w: &mut Vec<u8>)
Appends the payload after the command id.
Trait Implementations§
Source§impl Clone for SchemeReport
impl Clone for SchemeReport
Source§impl Debug for SchemeReport
impl Debug for SchemeReport
Source§impl Default for SchemeReport
impl Default for SchemeReport
impl Eq for SchemeReport
Source§impl From<SchemeReport> for Command
impl From<SchemeReport> for Command
Source§fn from(c: SchemeReport) -> Self
fn from(c: SchemeReport) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SchemeReport
impl PartialEq for SchemeReport
impl StructuralPartialEq for SchemeReport
Auto Trait Implementations§
impl Freeze for SchemeReport
impl RefUnwindSafe for SchemeReport
impl Send for SchemeReport
impl Sync for SchemeReport
impl Unpin for SchemeReport
impl UnsafeUnpin for SchemeReport
impl UnwindSafe for SchemeReport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more