#[repr(u8)]pub enum NegResult {
AcceptCompleted = 0,
AcceptIncomplete = 1,
Reject = 2,
}
Available on crate feature
rfc2478
only.Expand description
NegResult
as defined in RFC 2479 Section 3.2.1.
NegTokenTarg ::= SEQUENCE {
negResult [0] ENUMERATED {
accept_completed (0),
accept_incomplete (1),
reject (2) } OPTIONAL,
supportedMech [1] MechType OPTIONAL,
responseToken [2] OCTET STRING OPTIONAL,
mechListMIC [3] OCTET STRING OPTIONAL
}
Variants§
AcceptCompleted = 0
The target accepts the preferred security mechanism, and the context is established for the target.
AcceptIncomplete = 1
The target accepts one of the proposed security mechanisms and further exchanges are necessary.
Reject = 2
The target rejects all the proposed security mechanisms.
Trait Implementations§
Source§impl<'__der_lifetime> DecodeValue<'__der_lifetime> for NegResult
impl<'__der_lifetime> DecodeValue<'__der_lifetime> for NegResult
Source§impl EncodeValue for NegResult
impl EncodeValue for NegResult
Source§impl Ord for NegResult
impl Ord for NegResult
Source§impl PartialOrd for NegResult
impl PartialOrd for NegResult
impl Copy for NegResult
impl Eq for NegResult
impl StructuralPartialEq for NegResult
Auto Trait Implementations§
impl Freeze for NegResult
impl RefUnwindSafe for NegResult
impl Send for NegResult
impl Sync for NegResult
impl Unpin for NegResult
impl UnwindSafe for NegResult
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.