#[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 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 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 UnsafeUnpin for TrailerField
impl UnwindSafe for TrailerField
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. Read more
Source§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. Read more
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. Read more
Source§impl<T> IsConstructed for T
impl<T> IsConstructed for T
Source§const CONSTRUCTED: bool
const CONSTRUCTED: bool
ASN.1 constructed bit