pub struct RecipientInfos(pub SetOfVec<RecipientInfo>);Expand description
The RecipientInfos type is defined in RFC 5652 Section 6.1.
RecipientInfos ::= SET SIZE (1..MAX) OF RecipientInfoTuple Fields§
§0: SetOfVec<RecipientInfo>Trait Implementations§
Source§impl<'a> AsMut<SetOfVec<RecipientInfo>> for RecipientInfos
impl<'a> AsMut<SetOfVec<RecipientInfo>> for RecipientInfos
Source§fn as_mut(&mut self) -> &mut SetOfVec<RecipientInfo>
fn as_mut(&mut self) -> &mut SetOfVec<RecipientInfo>
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl<'a> AsRef<SetOfVec<RecipientInfo>> for RecipientInfos
impl<'a> AsRef<SetOfVec<RecipientInfo>> for RecipientInfos
Source§fn as_ref(&self) -> &SetOfVec<RecipientInfo>
fn as_ref(&self) -> &SetOfVec<RecipientInfo>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for RecipientInfos
impl Clone for RecipientInfos
Source§fn clone(&self) -> RecipientInfos
fn clone(&self) -> RecipientInfos
Returns a duplicate 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 moreSource§impl Debug for RecipientInfos
impl Debug for RecipientInfos
Source§impl<'a> DecodeValue<'a> for RecipientInfos
impl<'a> DecodeValue<'a> for RecipientInfos
Source§impl Default for RecipientInfos
impl Default for RecipientInfos
Source§fn default() -> RecipientInfos
fn default() -> RecipientInfos
Returns the “default value” for a type. Read more
Source§impl<'a> EncodeValue for RecipientInfos
impl<'a> EncodeValue for RecipientInfos
Source§impl<'a> FixedTag for RecipientInfos
impl<'a> FixedTag for RecipientInfos
Source§impl<'a> From<RecipientInfos> for SetOfVec<RecipientInfo>
impl<'a> From<RecipientInfos> for SetOfVec<RecipientInfo>
Source§fn from(value: RecipientInfos) -> Self
fn from(value: RecipientInfos) -> Self
Converts to this type from the input type.
Source§impl<'a> From<SetOfVec<RecipientInfo>> for RecipientInfos
impl<'a> From<SetOfVec<RecipientInfo>> for RecipientInfos
Source§fn from(value: SetOfVec<RecipientInfo>) -> Self
fn from(value: SetOfVec<RecipientInfo>) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RecipientInfos
impl PartialEq for RecipientInfos
Source§impl TryFrom<Vec<RecipientInfo>> for RecipientInfos
Available on crate feature std only.
impl TryFrom<Vec<RecipientInfo>> for RecipientInfos
Available on crate feature
std only.Source§impl<'a> ValueOrd for RecipientInfos
impl<'a> ValueOrd for RecipientInfos
impl Eq for RecipientInfos
impl StructuralPartialEq for RecipientInfos
Auto Trait Implementations§
impl Freeze for RecipientInfos
impl RefUnwindSafe for RecipientInfos
impl Send for RecipientInfos
impl Sync for RecipientInfos
impl Unpin for RecipientInfos
impl UnwindSafe for RecipientInfos
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag + 'a,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag + 'a,
Source§type Error = <T as DecodeValue<'a>>::Error
type Error = <T as DecodeValue<'a>>::Error
Type returned in the event of a decoding error.
Source§fn decode<R>(reader: &mut R) -> Result<T, <T as DecodeValue<'a>>::Error>where
R: Reader<'a>,
fn decode<R>(reader: &mut R) -> Result<T, <T as DecodeValue<'a>>::Error>where
R: Reader<'a>,
Attempt to decode this TLV message using the provided decoder.
Source§fn from_ber(bytes: &'a [u8]) -> Result<Self, Self::Error>
fn from_ber(bytes: &'a [u8]) -> Result<Self, Self::Error>
Available on crate feature
ber only.Parse
Self from the provided BER-encoded byte slice. Read moreSource§impl<T> Encode for T
impl<T> Encode for T
Source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this TLV object in bytes when encoded as ASN.1 DER.
Source§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this TLV object as ASN.1 DER using the provided Writer.
Source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this TLV object to the provided byte slice, returning a sub-slice
containing the encoded message.
Source§impl<T> IsConstructed for T
impl<T> IsConstructed for T
Source§const CONSTRUCTED: bool
const CONSTRUCTED: bool
ASN.1 constructed bit