Enum pkcs1::TrailerField
source · #[repr(u8)]pub enum TrailerField {
BC = 1,
}
Expand description
TrailerField
as defined in RFC 8017 Appendix 2.3.
TrailerField ::= INTEGER { trailerFieldBC(1) }
Variants§
BC = 1
the only supported value (0xbc, default)
Trait Implementations§
source§impl Clone for TrailerField
impl Clone for TrailerField
source§fn clone(&self) -> TrailerField
fn clone(&self) -> TrailerField
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TrailerField
impl Debug for TrailerField
source§impl<'a> DecodeValue<'a> for TrailerField
impl<'a> DecodeValue<'a> for TrailerField
source§impl Default for TrailerField
impl Default for TrailerField
source§impl EncodeValue for TrailerField
impl EncodeValue for TrailerField
source§impl PartialEq for TrailerField
impl PartialEq for TrailerField
impl Copy for TrailerField
impl Eq for TrailerField
impl StructuralPartialEq for TrailerField
Auto Trait Implementations§
impl Freeze for TrailerField
impl RefUnwindSafe for TrailerField
impl Send for TrailerField
impl Sync for TrailerField
impl Unpin for TrailerField
impl UnwindSafe for TrailerField
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<'a, T> Choice<'a> for T
impl<'a, T> Choice<'a> for T
source§fn can_decode(tag: Tag) -> bool
fn can_decode(tag: Tag) -> bool
Is the provided
Tag
decodable as a variant of this CHOICE
?§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
source§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this value in bytes when encoded as ASN.1 DER.
source§fn encode(&self, writer: &mut dyn Writer) -> Result<(), Error>
fn encode(&self, writer: &mut dyn Writer) -> Result<(), Error>
Encode this value 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 value to the provided byte slice, returning a sub-slice
containing the encoded message.
source§fn encode_to_vec(&self, buf: &mut Vec<u8>) -> Result<Length, Error>
fn encode_to_vec(&self, buf: &mut Vec<u8>) -> Result<Length, Error>
Encode this message as ASN.1 DER, appending it to the provided
byte vector.