pub struct PdCap {
pub capabilities: Vec<Capability>,
}Expand description
osdp_PDCAP body.
Fields§
§capabilities: Vec<Capability>All advertised capabilities, in the order they appeared on the wire.
Implementations§
Source§impl PdCap
impl PdCap
Sourcepub fn new(capabilities: Vec<Capability>) -> Self
pub fn new(capabilities: Vec<Capability>) -> Self
New body.
Sourcepub fn capability(&self, code: FunctionCode) -> Option<Capability>
pub fn capability(&self, code: FunctionCode) -> Option<Capability>
Look up the first capability matching code, if present.
Trait Implementations§
impl Eq for PdCap
impl StructuralPartialEq for PdCap
Auto Trait Implementations§
impl Freeze for PdCap
impl RefUnwindSafe for PdCap
impl Send for PdCap
impl Sync for PdCap
impl Unpin for PdCap
impl UnsafeUnpin for PdCap
impl UnwindSafe for PdCap
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