Struct ockam::XXNewKeyExchanger
source · [−]pub struct XXNewKeyExchanger<V> where
V: XXVault, { /* private fields */ }
Expand description
Represents an XX NewKeyExchanger
Implementations
sourceimpl<V> XXNewKeyExchanger<V> where
V: XXVault,
impl<V> XXNewKeyExchanger<V> where
V: XXVault,
sourcepub fn new(vault: V) -> XXNewKeyExchanger<V>
pub fn new(vault: V) -> XXNewKeyExchanger<V>
Create a new XXNewKeyExchanger
Trait Implementations
sourceimpl<V> AsyncTryClone for XXNewKeyExchanger<V> where
V: XXVault + Send + Sync + AsyncTryClone,
impl<V> AsyncTryClone for XXNewKeyExchanger<V> where
V: XXVault + Send + Sync + AsyncTryClone,
sourcefn async_try_clone<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<XXNewKeyExchanger<V>, Error>> + Send + 'async_trait, Global>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
'life0: 'async_trait,
XXNewKeyExchanger<V>: 'async_trait,
fn async_try_clone<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<XXNewKeyExchanger<V>, Error>> + Send + 'async_trait, Global>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
'life0: 'async_trait,
XXNewKeyExchanger<V>: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
Try cloning a object and return an Err
in case of failure.
sourceimpl<V> NewKeyExchanger for XXNewKeyExchanger<V> where
V: XXVault,
impl<V> NewKeyExchanger for XXNewKeyExchanger<V> where
V: XXVault,
sourcefn initiator<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Initiator<V>, Error>> + Send + 'async_trait, Global>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
'life0: 'async_trait,
XXNewKeyExchanger<V>: 'async_trait,
fn initiator<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Initiator<V>, Error>> + Send + 'async_trait, Global>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
'life0: 'async_trait,
XXNewKeyExchanger<V>: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
Create a new initiator using the provided backing vault
sourcefn responder<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Responder<V>, Error>> + Send + 'async_trait, Global>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
'life0: 'async_trait,
XXNewKeyExchanger<V>: 'async_trait,
fn responder<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Responder<V>, Error>> + Send + 'async_trait, Global>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
'life0: 'async_trait,
XXNewKeyExchanger<V>: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
Create a new responder using the provided backing vault
Auto Trait Implementations
impl<V> RefUnwindSafe for XXNewKeyExchanger<V> where
V: RefUnwindSafe,
impl<V> Send for XXNewKeyExchanger<V>
impl<V> Sync for XXNewKeyExchanger<V>
impl<V> Unpin for XXNewKeyExchanger<V> where
V: Unpin,
impl<V> UnwindSafe for XXNewKeyExchanger<V> where
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more