pub struct NegHints<'a> {
pub hint_name: Option<AnyRef<'a>>,
pub hint_address: Option<OctetStringRef<'a>>,
}
Expand description
NegHints
as defined in MS-SPNG Section 2.2.1.
NegHints ::= SEQUENCE {
hintName[0] GeneralString OPTIONAL,
hintAddress[1] OCTET STRING OPTIONAL
}
Fields§
§hint_name: Option<AnyRef<'a>>
SHOULD<5> contain the string “not_defined_in_RFC4178@please_ignore”.
This is currently AnyRef
as GeneralString
is not part of the der
crate
hint_address: Option<OctetStringRef<'a>>
Never present. MUST be omitted by the sender. Note that the encoding rules, as specified in X690, require that this structure not be present at all, not just be zero.
Trait Implementations§
Source§impl<'a> DecodeValue<'a> for NegHints<'a>
impl<'a> DecodeValue<'a> for NegHints<'a>
Source§impl<'a> EncodeValue for NegHints<'a>
impl<'a> EncodeValue for NegHints<'a>
impl<'a> Copy for NegHints<'a>
impl<'a> Eq for NegHints<'a>
impl<'a> Sequence<'a> for NegHints<'a>
impl<'a> StructuralPartialEq for NegHints<'a>
Auto Trait Implementations§
impl<'a> Freeze for NegHints<'a>
impl<'a> RefUnwindSafe for NegHints<'a>
impl<'a> Send for NegHints<'a>
impl<'a> Sync for NegHints<'a>
impl<'a> Unpin for NegHints<'a>
impl<'a> UnwindSafe for NegHints<'a>
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,
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 impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl 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.