pub enum ContentInfo {
Data(Vec<u8>),
EncryptedData(EncryptedData),
OtherContext(OtherContext),
}
Variants§
Implementations§
Source§impl ContentInfo
impl ContentInfo
pub fn parse(r: BERReader<'_, '_>) -> Result<Self, ASN1Error>
pub fn data(&self, password: &[u8]) -> Option<Vec<u8>>
pub fn oid(&self) -> ObjectIdentifier
pub fn write(&self, w: DERWriter<'_>)
pub fn to_der(&self) -> Vec<u8>
pub fn from_der(der: &[u8]) -> Result<Self, ASN1Error>
Trait Implementations§
Source§impl Clone for ContentInfo
impl Clone for ContentInfo
Source§fn clone(&self) -> ContentInfo
fn clone(&self) -> ContentInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ContentInfo
impl RefUnwindSafe for ContentInfo
impl Send for ContentInfo
impl Sync for ContentInfo
impl Unpin for ContentInfo
impl UnwindSafe for ContentInfo
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