Struct magic_wormhole::transit::TransitConnector
source · [−]pub struct TransitConnector { /* private fields */ }Expand description
Implementations
sourceimpl TransitConnector
impl TransitConnector
pub fn our_abilities(&self) -> &Abilities
sourcepub async fn leader_connect(
self,
transit_key: Key<TransitKey>,
their_abilities: Abilities,
their_hints: Arc<Hints>
) -> Result<Transit, TransitConnectError>
pub async fn leader_connect(
self,
transit_key: Key<TransitKey>,
their_abilities: Abilities,
their_hints: Arc<Hints>
) -> Result<Transit, TransitConnectError>
Connect to the other side, as sender.
sourcepub async fn follower_connect(
self,
transit_key: Key<TransitKey>,
their_abilities: Abilities,
their_hints: Arc<Hints>
) -> Result<Transit, TransitConnectError>
pub async fn follower_connect(
self,
transit_key: Key<TransitKey>,
their_abilities: Abilities,
their_hints: Arc<Hints>
) -> Result<Transit, TransitConnectError>
Connect to the other side, as receiver
Auto Trait Implementations
impl RefUnwindSafe for TransitConnector
impl Send for TransitConnector
impl Sync for TransitConnector
impl Unpin for TransitConnector
impl UnwindSafe for TransitConnector
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