Skip to content

Commit

Permalink
feat(const-oid): add the AssociatedOid trait (#479)
Browse files Browse the repository at this point in the history
Signed-off-by: Nathaniel McCallum <nathaniel@profian.com>
  • Loading branch information
npmccallum committed Mar 7, 2022
1 parent a9cc483 commit c705639
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions const-oid/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ pub use crate::{
use crate::encoder::Encoder;
use core::{fmt, str::FromStr};

/// A trait which associates an OID with a type.
pub trait AssociatedOid {
/// The OID associated with this type.
const OID: ObjectIdentifier;
}

/// Object identifier (OID).
///
/// OIDs are hierarchical structures consisting of "arcs", i.e. integer
Expand Down

0 comments on commit c705639

Please sign in to comment.