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]
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<A: Into<Route>>(
ctx: &mut Context,
route: A,
vault_worker_address: &Address
) -> Result<SecureChannelInfo>
[src]
ctx: &mut Context,
route: A,
vault_worker_address: &Address
) -> Result<SecureChannelInfo>
Create initiator channel with given route to a remote channel listener.
Trait Implementations
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 Send for SecureChannel
impl !Sync for SecureChannel
impl Unpin for SecureChannel
impl !UnwindSafe for SecureChannel
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> 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<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,