Struct ockam_channel::SecureChannel [−][src]
pub struct SecureChannel { /* fields omitted */ }
SecureChannel is an abstraction responsible for sending messages (usually over the network) in encrypted and authenticated way. SecureChannel always has two ends: initiator and responder.
Implementations
impl SecureChannel
[src]
impl SecureChannel
[src]pub async fn create_listener<A: Into<Address>>(
ctx: &Context,
address: A,
vault_worker_address: &Address
) -> Result<()>
[src]
ctx: &Context,
address: A,
vault_worker_address: &Address
) -> Result<()>
Create and start channel listener with given address.
pub async fn create_listener_with_vault_sync(
ctx: &Context,
address: Address,
vault: VaultSync
) -> Result<()>
[src]
ctx: &Context,
address: Address,
vault: VaultSync
) -> Result<()>
Create and start channel listener with given address.
pub async fn create<A: Into<Route>>(
ctx: &mut Context,
route: A,
vault: &Address
) -> Result<SecureChannelInfo>
[src]
ctx: &mut Context,
route: A,
vault: &Address
) -> Result<SecureChannelInfo>
Create initiator channel with given route to a remote channel listener.
pub async fn create_with_vault_sync(
ctx: &mut Context,
route: Route,
vault_sync: VaultSync
) -> Result<SecureChannelInfo>
[src]
ctx: &mut Context,
route: Route,
vault_sync: VaultSync
) -> Result<SecureChannelInfo>
Create initiator channel with given route to a remote channel listener.
Trait Implementations
impl Worker for SecureChannel
[src]
impl Worker for SecureChannel
[src]type Message = Any
The type of Message the Worker is sent in Self::handle_message
type Context = Context
The API and other resources available for the worker during message processing.
fn initialize<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ctx: &'life1 mut Self::Context
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
ctx: &'life1 mut Self::Context
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn handle_message<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ctx: &'life1 mut Self::Context,
msg: Routed<Self::Message>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
ctx: &'life1 mut Self::Context,
msg: Routed<Self::Message>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
pub fn shutdown(&mut self, _context: &mut Self::Context) -> Result<(), Error>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for SecureChannel
impl !RefUnwindSafe for SecureChannel
impl Send for SecureChannel
impl Send for SecureChannel
impl !Sync for SecureChannel
impl !Sync for SecureChannel
impl Unpin for SecureChannel
impl Unpin for SecureChannel
impl !UnwindSafe for SecureChannel
impl !UnwindSafe for SecureChannel
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,