pub struct VideotexString<'a> { /* private fields */ }
mtls
only.Expand description
ASN.1 restricted character string type (VideotexString
)
Implementations
impl<'a> VideotexString<'a>
impl<'a> VideotexString<'a>
pub const fn new(s: &'a str) -> VideotexString<'a>
pub fn string(&self) -> String
Trait Implementations
impl<'a> AsRef<str> for VideotexString<'a>
impl<'a> AsRef<str> for VideotexString<'a>
impl<'a> CheckDerConstraints for VideotexString<'a>
impl<'a> CheckDerConstraints for VideotexString<'a>
fn check_constraints(any: &Any<'_>) -> Result<(), Error>
impl<'a> Debug for VideotexString<'a>
impl<'a> Debug for VideotexString<'a>
impl<'a> From<&'a str> for VideotexString<'a>
impl<'a> From<&'a str> for VideotexString<'a>
fn from(s: &'a str) -> VideotexString<'a>
fn from(s: &'a str) -> VideotexString<'a>
Converts to this type from the input type.
impl<'_> From<String> for VideotexString<'_>
impl<'_> From<String> for VideotexString<'_>
fn from(s: String) -> VideotexString<'_>
fn from(s: String) -> VideotexString<'_>
Converts to this type from the input type.
impl<'a> PartialEq<VideotexString<'a>> for VideotexString<'a>
impl<'a> PartialEq<VideotexString<'a>> for VideotexString<'a>
fn eq(&self, other: &VideotexString<'a>) -> bool
fn eq(&self, other: &VideotexString<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &VideotexString<'a>) -> bool
fn ne(&self, other: &VideotexString<'a>) -> bool
This method tests for !=
.
impl<'a> Tagged for VideotexString<'a>
impl<'a> Tagged for VideotexString<'a>
impl<'a> TestValidCharset for VideotexString<'a>
impl<'a> TestValidCharset for VideotexString<'a>
impl<'_> ToDer for VideotexString<'_>
impl<'_> ToDer for VideotexString<'_>
fn to_der_len(&self) -> Result<usize, Error>
fn to_der_len(&self) -> Result<usize, Error>
Get the length of the object, when encoded Read more
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. Read more
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. Read more
impl<'a> TryFrom<Any<'a>> for VideotexString<'a>
impl<'a> TryFrom<Any<'a>> for VideotexString<'a>
impl<'a> StructuralPartialEq for VideotexString<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for VideotexString<'a>
impl<'a> Send for VideotexString<'a>
impl<'a> Sync for VideotexString<'a>
impl<'a> Unpin for VideotexString<'a>
impl<'a> UnwindSafe for VideotexString<'a>
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,
impl<T> AsUncased for T where
T: AsRef<str> + ?Sized,
impl<T> AsUncased for T where
T: AsRef<str> + ?Sized,
fn as_uncased(&self) -> &UncasedStr
fn as_uncased(&self) -> &UncasedStr
Convert self
to an UncasedStr
.
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
impl<T> Choice for T where
T: Tagged,
impl<T> Choice for T where
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
?
impl<'a, T> FromDer<'a> for T where
T: TryFrom<Any<'a>, Error = Error> + CheckDerConstraints,
impl<'a, T> FromDer<'a> for T where
T: TryFrom<Any<'a>, Error = Error> + CheckDerConstraints,
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>,
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