[−][src]Struct cpace::Context
Contextual data bound to the resulting Key
.
Both peers need to construct identical contexts to agree on a key.
The Context
struct is intended to be constructed inline to the call to
init
or respond
, simulating named parameters.
Fields
initiator_id: &'ctx str
A representation of the identity of the initiator.
responder_id: &'ctx str
A representation of the identity of the responder.
associated_data: &'ctx [u8]
Optional associated data the key will be bound to (can be empty).
Trait Implementations
Auto Trait Implementations
impl<'ctx> RefUnwindSafe for Context<'ctx>
impl<'ctx> Send for Context<'ctx>
impl<'ctx> Sync for Context<'ctx>
impl<'ctx> Unpin for Context<'ctx>
impl<'ctx> UnwindSafe for Context<'ctx>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,