pub struct Tag(pub u32);
Available on crate feature
mtls
only.Expand description
BER/DER Tag as defined in X.680 section 8.4
X.690 doesn’t specify the maximum tag size so we’re assuming that people aren’t going to need anything more than a u32.
Tuple Fields
0: u32
Implementations
impl Tag
impl Tag
pub const EndOfContent: Tag = Tag(0)
pub const Boolean: Tag = Tag(1)
pub const Integer: Tag = Tag(2)
pub const BitString: Tag = Tag(3)
pub const OctetString: Tag = Tag(4)
pub const Null: Tag = Tag(5)
pub const Oid: Tag = Tag(6)
pub const ObjectDescriptor: Tag = Tag(7)
pub const External: Tag = Tag(8)
pub const RealType: Tag = Tag(9)
pub const Enumerated: Tag = Tag(10)
pub const EmbeddedPdv: Tag = Tag(11)
pub const Utf8String: Tag = Tag(12)
pub const RelativeOid: Tag = Tag(13)
pub const Sequence: Tag = Tag(16)
pub const Set: Tag = Tag(17)
pub const NumericString: Tag = Tag(18)
pub const PrintableString: Tag = Tag(19)
pub const T61String: Tag = Tag(20)
pub const TeletexString: Tag = Tag(20)
pub const VideotexString: Tag = Tag(21)
pub const Ia5String: Tag = Tag(22)
pub const UtcTime: Tag = Tag(23)
pub const GeneralizedTime: Tag = Tag(24)
pub const GraphicString: Tag = Tag(25)
pub const VisibleString: Tag = Tag(26)
pub const GeneralString: Tag = Tag(27)
pub const UniversalString: Tag = Tag(28)
pub const BmpString: Tag = Tag(30)
Trait Implementations
impl From<Tag> for OptTaggedParser
impl From<Tag> for OptTaggedParser
fn from(tag: Tag) -> OptTaggedParser
fn from(tag: Tag) -> OptTaggedParser
Build a TaggedOptional
object with class ContextSpecific
and given tag
impl Copy for Tag
impl Eq for Tag
impl StructuralEq for Tag
impl StructuralPartialEq for Tag
Auto Trait Implementations
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
Blanket Implementations
impl<'a, T> AsTaggedExplicit<'a> for T where
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for T where
T: 'a,
fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self>
impl<'a, T> AsTaggedImplicit<'a> for T where
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for T where
T: 'a,
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
sourcefn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.
fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
F: FnMut(T) -> U,
A: Array<Item = U>,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more