pub struct ExplicitTag<T> { /* private fields */ }
Expand description
Explicit tag is quite often use in microsoft specification
Implementations§
Trait Implementations§
Source§impl<T: ASN1> ASN1 for ExplicitTag<T>
impl<T: ASN1> ASN1 for ExplicitTag<T>
Source§fn write_asn1(&self, writer: DERWriter<'_>) -> RdpResult<()>
fn write_asn1(&self, writer: DERWriter<'_>) -> RdpResult<()>
Write an ASN1 Node with an explicit tag using a DERWriter
§Example
let s = ExplicitTag::new(Tag::context(0), vec![0, 1, 2, 3]);
assert_eq!(to_der(&s), [160, 6, 4, 4, 0, 1, 2, 3]);
Auto Trait Implementations§
impl<T> Freeze for ExplicitTag<T>where
T: Freeze,
impl<T> RefUnwindSafe for ExplicitTag<T>where
T: RefUnwindSafe,
impl<T> Send for ExplicitTag<T>where
T: Send,
impl<T> Sync for ExplicitTag<T>where
T: Sync,
impl<T> Unpin for ExplicitTag<T>where
T: Unpin,
impl<T> UnwindSafe for ExplicitTag<T>where
T: UnwindSafe,
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