Struct asn1::OctetStringEncoded
source · pub struct OctetStringEncoded<T>(/* private fields */);
Expand description
Represents values that are encoded as an OCTET STRING
containing an
encoded TLV, of type T
.
Implementations§
source§impl<T> OctetStringEncoded<T>
impl<T> OctetStringEncoded<T>
pub fn new(v: T) -> OctetStringEncoded<T>
pub fn get(&self) -> &T
pub fn into_inner(self) -> T
Trait Implementations§
source§impl<T: Debug> Debug for OctetStringEncoded<T>
impl<T: Debug> Debug for OctetStringEncoded<T>
source§impl<T: PartialEq> PartialEq for OctetStringEncoded<T>
impl<T: PartialEq> PartialEq for OctetStringEncoded<T>
source§fn eq(&self, other: &OctetStringEncoded<T>) -> bool
fn eq(&self, other: &OctetStringEncoded<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a, T: Asn1Readable<'a>> SimpleAsn1Readable<'a> for OctetStringEncoded<T>
impl<'a, T: Asn1Readable<'a>> SimpleAsn1Readable<'a> for OctetStringEncoded<T>
const TAG: Tag = _
fn parse_data(data: &'a [u8]) -> ParseResult<Self>
source§impl<T: Asn1Writable> SimpleAsn1Writable for OctetStringEncoded<T>
impl<T: Asn1Writable> SimpleAsn1Writable for OctetStringEncoded<T>
const TAG: Tag = _
fn write_data(&self, dest: &mut WriteBuf) -> WriteResult
impl<T: Eq> Eq for OctetStringEncoded<T>
impl<T> StructuralPartialEq for OctetStringEncoded<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for OctetStringEncoded<T>where
T: RefUnwindSafe,
impl<T> Send for OctetStringEncoded<T>where
T: Send,
impl<T> Sync for OctetStringEncoded<T>where
T: Sync,
impl<T> Unpin for OctetStringEncoded<T>where
T: Unpin,
impl<T> UnwindSafe for OctetStringEncoded<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<'a, T> Asn1Readable<'a> for Twhere
T: SimpleAsn1Readable<'a>,
impl<'a, T> Asn1Readable<'a> for Twhere
T: SimpleAsn1Readable<'a>,
source§impl<T> Asn1Writable for Twhere
T: SimpleAsn1Writable,
impl<T> Asn1Writable for Twhere
T: SimpleAsn1Writable,
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