pub struct Identity {
pub fabric_id: FabricId,
pub node_id: NodeId,
pub cats: [Option<CaseAuthenticatedTag>; 3],
}Available on crate feature
rustcrypto only.Expand description
Who a NOC is for.
Fields§
§fabric_id: FabricIdThe fabric.
node_id: NodeIdThe node.
cats: [Option<CaseAuthenticatedTag>; 3]§6.6.2.1.2’s CASE Authenticated Tags, at most three (§6.5.6.3).
Implementations§
Source§impl Identity
impl Identity
Sourcepub fn with_cats(self, cats: &[CaseAuthenticatedTag]) -> Result<Self>
pub fn with_cats(self, cats: &[CaseAuthenticatedTag]) -> Result<Self>
The same identity carrying cats.
Refuses more than MAX_CATS, and refuses two tags with the same identifier: §6.6.2.1.2
makes the low sixteen bits a version, so two tags sharing an identifier are two versions
of one group, and an ACL matching on the higher would be silently satisfied by the lower.
Trait Implementations§
impl Copy for Identity
impl Eq for Identity
impl StructuralPartialEq for Identity
Auto Trait Implementations§
impl Forget for Identity
impl Freeze for Identity
impl Move for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
impl UnwindSafe for Identity
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