pub struct GeneralNameRef(/* private fields */);
Expand description
A borrowed reference to a GeneralName
.
Implementations§
Source§impl GeneralNameRef
impl GeneralNameRef
Sourcepub fn email(&self) -> Option<&str>
pub fn email(&self) -> Option<&str>
Returns the contents of this GeneralName
if it is an rfc822Name
.
Sourcepub fn dnsname(&self) -> Option<&str>
pub fn dnsname(&self) -> Option<&str>
Returns the contents of this GeneralName
if it is a dNSName
.
Trait Implementations§
Source§impl AsMut<GeneralNameRef> for GeneralName
impl AsMut<GeneralNameRef> for GeneralName
Source§fn as_mut(&mut self) -> &mut GeneralNameRef
fn as_mut(&mut self) -> &mut GeneralNameRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<GeneralNameRef> for GeneralName
impl AsRef<GeneralNameRef> for GeneralName
Source§fn as_ref(&self) -> &GeneralNameRef
fn as_ref(&self) -> &GeneralNameRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<GeneralNameRef> for GeneralName
impl Borrow<GeneralNameRef> for GeneralName
Source§fn borrow(&self) -> &GeneralNameRef
fn borrow(&self) -> &GeneralNameRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<GeneralNameRef> for GeneralName
impl BorrowMut<GeneralNameRef> for GeneralName
Source§fn borrow_mut(&mut self) -> &mut GeneralNameRef
fn borrow_mut(&mut self) -> &mut GeneralNameRef
Mutably borrows from an owned value. Read more
Source§impl Debug for GeneralNameRef
impl Debug for GeneralNameRef
Source§impl ForeignTypeRef for GeneralNameRef
impl ForeignTypeRef for GeneralNameRef
Source§type CType = GENERAL_NAME_st
type CType = GENERAL_NAME_st
The raw C type.
Source§unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type. Read more
impl Send for GeneralNameRef
impl Sync for GeneralNameRef
Auto Trait Implementations§
impl Freeze for GeneralNameRef
impl !RefUnwindSafe for GeneralNameRef
impl Unpin for GeneralNameRef
impl UnwindSafe for GeneralNameRef
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