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§impl<'a, T: Asn1Readable<'a>> SimpleAsn1Readable<'a> for OctetStringEncoded<T>
impl<'a, T: Asn1Readable<'a>> SimpleAsn1Readable<'a> for OctetStringEncoded<T>
Source§fn parse_data(data: &'a [u8]) -> ParseResult<Self>
fn parse_data(data: &'a [u8]) -> ParseResult<Self>
Parse the value from the given data bytes. Read more
Source§impl<T: Asn1Writable> SimpleAsn1Writable for OctetStringEncoded<T>
impl<T: Asn1Writable> SimpleAsn1Writable for OctetStringEncoded<T>
Source§fn write_data(&self, dest: &mut WriteBuf) -> WriteResult
fn write_data(&self, dest: &mut WriteBuf) -> WriteResult
Write the value’s data to the given buffer. Read more
impl<T: Eq> Eq for OctetStringEncoded<T>
impl<T> StructuralPartialEq for OctetStringEncoded<T>
Auto Trait Implementations§
impl<T> Freeze for OctetStringEncoded<T>where
T: Freeze,
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