Struct openssl::asn1::Asn1Enumerated
source · [−]pub struct Asn1Enumerated(_);
Expand description
An ASN.1 enumerated.
Methods from Deref<Target = Asn1EnumeratedRef>
sourcepub fn get_i64(&self) -> Result<i64, ErrorStack>
pub fn get_i64(&self) -> Result<i64, ErrorStack>
Get the value, if it fits in the required bounds.
This corresponds to ASN1_ENUMERATED_get_int64
.
Trait Implementations
sourceimpl AsRef<Asn1EnumeratedRef> for Asn1Enumerated
impl AsRef<Asn1EnumeratedRef> for Asn1Enumerated
sourcefn as_ref(&self) -> &Asn1EnumeratedRef
fn as_ref(&self) -> &Asn1EnumeratedRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Borrow<Asn1EnumeratedRef> for Asn1Enumerated
impl Borrow<Asn1EnumeratedRef> for Asn1Enumerated
sourcefn borrow(&self) -> &Asn1EnumeratedRef
fn borrow(&self) -> &Asn1EnumeratedRef
Immutably borrows from an owned value. Read more
sourceimpl Deref for Asn1Enumerated
impl Deref for Asn1Enumerated
type Target = Asn1EnumeratedRef
type Target = Asn1EnumeratedRef
The resulting type after dereferencing.
sourcefn deref(&self) -> &Asn1EnumeratedRef
fn deref(&self) -> &Asn1EnumeratedRef
Dereferences the value.
sourceimpl DerefMut for Asn1Enumerated
impl DerefMut for Asn1Enumerated
sourcefn deref_mut(&mut self) -> &mut Asn1EnumeratedRef
fn deref_mut(&mut self) -> &mut Asn1EnumeratedRef
Mutably dereferences the value.
sourceimpl Drop for Asn1Enumerated
impl Drop for Asn1Enumerated
sourceimpl ForeignType for Asn1Enumerated
impl ForeignType for Asn1Enumerated
type CType = ASN1_ENUMERATED
type CType = ASN1_ENUMERATED
The raw C type.
type Ref = Asn1EnumeratedRef
type Ref = Asn1EnumeratedRef
The type representing a reference to this type.
sourceunsafe fn from_ptr(ptr: *mut ASN1_ENUMERATED) -> Asn1Enumerated
unsafe fn from_ptr(ptr: *mut ASN1_ENUMERATED) -> Asn1Enumerated
Constructs an instance of this type from its raw type.
sourcefn as_ptr(&self) -> *mut ASN1_ENUMERATED
fn as_ptr(&self) -> *mut ASN1_ENUMERATED
Returns a raw pointer to the wrapped value.
impl Send for Asn1Enumerated
impl Sync for Asn1Enumerated
Auto Trait Implementations
impl RefUnwindSafe for Asn1Enumerated
impl Unpin for Asn1Enumerated
impl UnwindSafe for Asn1Enumerated
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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