pub struct LinkDialer<'a> { /* private fields */ }Expand description
Dials one configured entry with this machine’s recorded identity and pass.
Implementations§
Source§impl<'a> LinkDialer<'a>
impl<'a> LinkDialer<'a>
Sourcepub fn new(host: &'a LinkHost, machine: &MachineConfig) -> Self
pub fn new(host: &'a LinkHost, machine: &MachineConfig) -> Self
Uses the host already built from this machine’s verified configuration.
Sourcepub fn with_topology(self, services: Arc<LiminalConnectionServices>) -> Self
pub fn with_topology(self, services: Arc<LiminalConnectionServices>) -> Self
Publishes the keyed open before returning it to its carrier owner.
Sourcepub fn open(
&self,
entry: &OutboundLinkConfig,
) -> Result<LinkDialOutcome, LinkDialError>
pub fn open( &self, entry: &OutboundLinkConfig, ) -> Result<LinkDialOutcome, LinkDialError>
Opens the exporting end with exactly one TCP connection attempt.
DNS is resolved once and only its first address is attempted. A peer’s Held or Refused answer is returned without reconnecting.
§Errors
Missing address/key, unreadable pass, admission refusal, malformed wire answer, I/O failure, or a handshake against an unexpected machine.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for LinkDialer<'a>
impl<'a> !UnwindSafe for LinkDialer<'a>
impl<'a> Freeze for LinkDialer<'a>
impl<'a> Send for LinkDialer<'a>
impl<'a> Sync for LinkDialer<'a>
impl<'a> Unpin for LinkDialer<'a>
impl<'a> UnsafeUnpin for LinkDialer<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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