Enum p12::ContentInfo
source · [−]pub enum ContentInfo {
Data(Vec<u8>),
EncryptedData(EncryptedData),
OtherContext(OtherContext),
}
Variants
Data(Vec<u8>)
EncryptedData(EncryptedData)
OtherContext(OtherContext)
Implementations
sourceimpl 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
sourceimpl Clone for ContentInfo
impl Clone for ContentInfo
sourcefn clone(&self) -> ContentInfo
fn clone(&self) -> ContentInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for ContentInfo
impl Send for ContentInfo
impl Sync for ContentInfo
impl Unpin for ContentInfo
impl UnwindSafe for ContentInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more