Struct ockam_key_exchange_xx::Initiator
source · pub struct Initiator { /* private fields */ }
Expand description
Represents an XX initiator
Trait Implementations§
source§impl KeyExchanger for Initiator
impl KeyExchanger for Initiator
source§fn name<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn name<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Return key exchange unique name.
source§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
Self: 'async_trait,
'life0: 'async_trait,
'life1: '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 Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Generate request that should be sent to the other party.
source§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
Self: 'async_trait,
'life0: 'async_trait,
'life1: '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 Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Handle response from other party and return payload.
source§fn is_complete<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_complete<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Returns true if the key exchange process is complete.
source§fn finalize<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<CompletedKeyExchange>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn finalize<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<CompletedKeyExchange>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Return the data and keys needed for channels. Key exchange must be completed prior to calling this function.
Auto Trait Implementations§
impl !RefUnwindSafe for Initiator
impl Send for Initiator
impl Sync for Initiator
impl Unpin for Initiator
impl !UnwindSafe for Initiator
Blanket Implementations§
source§impl<D> AsyncTryClone for Dwhere
D: Clone + Sync,
impl<D> AsyncTryClone for Dwhere D: Clone + Sync,
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