Struct ockam_key_exchange_xx::Initiator
source · [−]pub struct Initiator<V: XXVault> { /* private fields */ }
Expand description
Represents an XX initiator
Trait Implementations
sourceimpl<V: XXVault> KeyExchanger for Initiator<V>
impl<V: XXVault> KeyExchanger for Initiator<V>
sourcefn name<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn name<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Return key exchange unique name.
sourcefn generate_request<'life0, 'life1, 'async_trait>(
&'life0 mut self,
payload: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn generate_request<'life0, 'life1, 'async_trait>(
&'life0 mut self,
payload: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Generate request that should be sent to the other party.
sourcefn handle_response<'life0, 'life1, 'async_trait>(
&'life0 mut self,
response: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn handle_response<'life0, 'life1, 'async_trait>(
&'life0 mut self,
response: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Handle response from other party and return payload.
Auto Trait Implementations
impl<V> RefUnwindSafe for Initiator<V> where
V: RefUnwindSafe,
impl<V> Send for Initiator<V>
impl<V> Sync for Initiator<V>
impl<V> Unpin for Initiator<V> where
V: Unpin,
impl<V> UnwindSafe for Initiator<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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more