Struct Asn1Object
pub struct Asn1Object(/* private fields */);
Expand description
Object Identifier
Represents an ASN.1 Object. Typically, NIDs, or numeric identifiers
are stored as a table within the Nid
module. These constants are
used to determine attributes of a certificate, such as mapping the
attribute “CommonName” to “CN” which is represented as the OID of 13.
This attribute is a constant in the nid::COMMONNAME
.
OpenSSL documentation at OBJ_nid2obj
Implementations§
§impl Asn1Object
impl Asn1Object
pub fn from_str(txt: &str) -> Result<Asn1Object, ErrorStack>
pub fn from_str(txt: &str) -> Result<Asn1Object, ErrorStack>
Constructs an ASN.1 Object Identifier from a string representation of the OID.
This corresponds to OBJ_txt2obj
.
Methods from Deref<Target = Asn1ObjectRef>§
Trait Implementations§
§impl AsMut<Asn1ObjectRef> for Asn1Object
impl AsMut<Asn1ObjectRef> for Asn1Object
§fn as_mut(&mut self) -> &mut Asn1ObjectRef
fn as_mut(&mut self) -> &mut Asn1ObjectRef
Converts this type into a mutable reference of the (usually inferred) input type.
§impl AsRef<Asn1ObjectRef> for Asn1Object
impl AsRef<Asn1ObjectRef> for Asn1Object
§fn as_ref(&self) -> &Asn1ObjectRef
fn as_ref(&self) -> &Asn1ObjectRef
Converts this type into a shared reference of the (usually inferred) input type.
§impl Borrow<Asn1ObjectRef> for Asn1Object
impl Borrow<Asn1ObjectRef> for Asn1Object
§fn borrow(&self) -> &Asn1ObjectRef
fn borrow(&self) -> &Asn1ObjectRef
Immutably borrows from an owned value. Read more
§impl BorrowMut<Asn1ObjectRef> for Asn1Object
impl BorrowMut<Asn1ObjectRef> for Asn1Object
§fn borrow_mut(&mut self) -> &mut Asn1ObjectRef
fn borrow_mut(&mut self) -> &mut Asn1ObjectRef
Mutably borrows from an owned value. Read more
§impl Deref for Asn1Object
impl Deref for Asn1Object
§type Target = Asn1ObjectRef
type Target = Asn1ObjectRef
The resulting type after dereferencing.
§fn deref(&self) -> &Asn1ObjectRef
fn deref(&self) -> &Asn1ObjectRef
Dereferences the value.
§impl DerefMut for Asn1Object
impl DerefMut for Asn1Object
§fn deref_mut(&mut self) -> &mut Asn1ObjectRef
fn deref_mut(&mut self) -> &mut Asn1ObjectRef
Mutably dereferences the value.
§impl ForeignType for Asn1Object
impl ForeignType for Asn1Object
§type Ref = Asn1ObjectRef
type Ref = Asn1ObjectRef
The type representing a reference to this type.
§unsafe fn from_ptr(ptr: *mut asn1_object_st) -> Asn1Object
unsafe fn from_ptr(ptr: *mut asn1_object_st) -> Asn1Object
Constructs an instance of this type from its raw type. Read more
§impl Stackable for Asn1Object
impl Stackable for Asn1Object
impl Send for Asn1Object
impl Sync for Asn1Object
Auto Trait Implementations§
impl Freeze for Asn1Object
impl RefUnwindSafe for Asn1Object
impl Unpin for Asn1Object
impl UnwindSafe for Asn1Object
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Create a new
Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more