Struct rocket::mtls::oid::asn1_rs::NumericString
pub struct NumericString<'a> { /* private fields */ }
Available on crate feature
mtls
only.Expand description
ASN.1 restricted character string type (NumericString
)
Implementations§
§impl<'a> NumericString<'a>
impl<'a> NumericString<'a>
pub const fn new(s: &'a str) -> NumericString<'a>
pub fn string(&self) -> String
Trait Implementations§
§impl<'a> AsRef<str> for NumericString<'a>
impl<'a> AsRef<str> for NumericString<'a>
§impl<'a> CheckDerConstraints for NumericString<'a>
impl<'a> CheckDerConstraints for NumericString<'a>
§impl<'a> Debug for NumericString<'a>
impl<'a> Debug for NumericString<'a>
§impl<'a> From<&'a str> for NumericString<'a>
impl<'a> From<&'a str> for NumericString<'a>
§fn from(s: &'a str) -> NumericString<'a>
fn from(s: &'a str) -> NumericString<'a>
Converts to this type from the input type.
§impl From<String> for NumericString<'_>
impl From<String> for NumericString<'_>
§fn from(s: String) -> NumericString<'_>
fn from(s: String) -> NumericString<'_>
Converts to this type from the input type.
§impl<'a> PartialEq<NumericString<'a>> for NumericString<'a>
impl<'a> PartialEq<NumericString<'a>> for NumericString<'a>
§fn eq(&self, other: &NumericString<'a>) -> bool
fn eq(&self, other: &NumericString<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl<'a> TestValidCharset for NumericString<'a>
impl<'a> TestValidCharset for NumericString<'a>
§impl ToDer for NumericString<'_>
impl ToDer for NumericString<'_>
§fn to_der_len(&self) -> Result<usize, Error>
fn to_der_len(&self) -> Result<usize, Error>
Get the length of the object, when encoded
§fn write_der_header(
&self,
writer: &mut dyn Write
) -> Result<usize, SerializeError>
fn write_der_header( &self, writer: &mut dyn Write ) -> Result<usize, SerializeError>
Attempt to write the DER header to this writer.
§fn write_der_content(
&self,
writer: &mut dyn Write
) -> Result<usize, SerializeError>
fn write_der_content( &self, writer: &mut dyn Write ) -> Result<usize, SerializeError>
Attempt to write the DER content (all except header) to this writer.
§fn to_der_vec(&self) -> Result<Vec<u8, Global>, SerializeError>
fn to_der_vec(&self) -> Result<Vec<u8, Global>, SerializeError>
Write the DER encoded representation to a newly allocated
Vec<u8>
.§fn to_der_vec_raw(&self) -> Result<Vec<u8, Global>, SerializeError>
fn to_der_vec_raw(&self) -> Result<Vec<u8, Global>, SerializeError>
Similar to using
to_vec
, but uses provided values without changes.
This can generate an invalid encoding for a DER object.§fn write_der(&self, writer: &mut dyn Write) -> Result<usize, SerializeError>
fn write_der(&self, writer: &mut dyn Write) -> Result<usize, SerializeError>
Attempt to write the DER encoded representation (header and content) into this writer. Read more
§fn write_der_raw(&self, writer: &mut dyn Write) -> Result<usize, SerializeError>
fn write_der_raw(&self, writer: &mut dyn Write) -> Result<usize, SerializeError>
Similar to using
to_der
, but uses provided values without changes.
This can generate an invalid encoding for a DER object.§impl<'a> TryFrom<Any<'a>> for NumericString<'a>
impl<'a> TryFrom<Any<'a>> for NumericString<'a>
impl<'a> StructuralPartialEq for NumericString<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for NumericString<'a>
impl<'a> Send for NumericString<'a>
impl<'a> Sync for NumericString<'a>
impl<'a> Unpin for NumericString<'a>
impl<'a> UnwindSafe for NumericString<'a>
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
§impl<T> AsUncased for Twhere
T: AsRef<str> + ?Sized,
impl<T> AsUncased for Twhere T: AsRef<str> + ?Sized,
§fn as_uncased(&self) -> &UncasedStr
fn as_uncased(&self) -> &UncasedStr
Convert
self
to an UncasedStr
.§impl<T> Choice for Twhere
T: Tagged,
impl<T> Choice for Twhere T: Tagged,
§fn can_decode(tag: Tag) -> bool
fn can_decode(tag: Tag) -> bool
Is the provided
Tag
decodable as a variant of this CHOICE
?source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
§fn 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.