pub enum NegotiationToken<'a> {
NegTokenInit(NegTokenInit<'a>),
NegTokenTarg(NegTokenTarg<'a>),
}
Expand description
NegotiationToken
as defined in RFC 4178 Section 4.2.
NegotiationToken ::= CHOICE {
negTokenInit [0] NegTokenInit,
negTokenResp [1] NegTokenResp
}
Variants§
NegTokenInit(NegTokenInit<'a>)
Available on crate feature
rfc2478
only.This is the inner token of the initial negotiation message.
NegTokenTarg(NegTokenTarg<'a>)
Available on crate feature
rfc2478
only.Negotiation token returned by the target to the initiator which contains, for the first token returned, a global negotiation result and the security mechanism selected (if any).
Trait Implementations§
Source§impl<'a> Choice<'a> for NegotiationToken<'a>
impl<'a> Choice<'a> for NegotiationToken<'a>
Source§impl<'a> Clone for NegotiationToken<'a>
impl<'a> Clone for NegotiationToken<'a>
Source§fn clone(&self) -> NegotiationToken<'a>
fn clone(&self) -> NegotiationToken<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for NegotiationToken<'a>
impl<'a> Debug for NegotiationToken<'a>
Source§impl<'a> Decode<'a> for NegotiationToken<'a>
impl<'a> Decode<'a> for NegotiationToken<'a>
Source§impl<'a> EncodeValue for NegotiationToken<'a>
impl<'a> EncodeValue for NegotiationToken<'a>
Source§impl<'a> PartialEq for NegotiationToken<'a>
impl<'a> PartialEq for NegotiationToken<'a>
Source§impl<'a> Tagged for NegotiationToken<'a>
impl<'a> Tagged for NegotiationToken<'a>
impl<'a> Eq for NegotiationToken<'a>
impl<'a> StructuralPartialEq for NegotiationToken<'a>
Auto Trait Implementations§
impl<'a> Freeze for NegotiationToken<'a>
impl<'a> RefUnwindSafe for NegotiationToken<'a>
impl<'a> Send for NegotiationToken<'a>
impl<'a> Sync for NegotiationToken<'a>
impl<'a> Unpin for NegotiationToken<'a>
impl<'a> UnwindSafe for NegotiationToken<'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<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.