pub struct Bound { /* private fields */ }Expand description
A listening socket and the origin that will answer on it.
Separate from Origin so that “the port is ours” is a thing the caller holds rather
than something it hopes for. A caller cannot announce that the daemon is up before it
is, because it has nothing to announce until this exists.
Implementations§
Source§impl Bound
impl Bound
Sourcepub fn refused(&self) -> &[String]
pub fn refused(&self) -> &[String]
One line per alias, naming where it actually points.
Only available once bound, which is the point: an alias rooted at the home directory has no printable base until the remote has been asked. Enabled hosts that would not connect, and what ssh said about each.
Separate from routes so a caller cannot print them as though they were working. Empty
on an ordinary run; not an error, because the daemon is serving everything else.
pub fn routes(&self) -> &[String]
Auto Trait Implementations§
impl !Freeze for Bound
impl !RefUnwindSafe for Bound
impl !UnwindSafe for Bound
impl Send for Bound
impl Sync for Bound
impl Unpin for Bound
impl UnsafeUnpin for Bound
Blanket Implementations§
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