pub struct BoxDoors { /* private fields */ }Expand description
The real doors.
Trait Implementations§
Source§impl Doors for BoxDoors
impl Doors for BoxDoors
Source§fn join(&self, _req: &JoinRequest) -> Result<JoinReply, String>
fn join(&self, _req: &JoinRequest) -> Result<JoinReply, String>
The join is what the installer fed — nothing is dialled. Until the installer has reached this box’s listener there is nothing to read, which is a transient: the loop asks again.
Source§fn tunnel_up(&self, overlay: Ipv4Addr, peers: &[Peer]) -> Result<bool, String>
fn tunnel_up(&self, overlay: Ipv4Addr, peers: &[Peer]) -> Result<bool, String>
Raise this box’s tunnel on the assigned address, through the seed’s
Tunnel driver (tunnel_driver). Ok(true) when it is up.Source§fn admin(&self, fed: Option<&str>) -> Result<bool, String>
fn admin(&self, fed: Option<&str>) -> Result<bool, String>
The primary’s admin: install the fed key if the table is empty, then
say whether an admin is there.
Source§fn recharge_hold(&self, from: &str) -> Result<Hold, String>
fn recharge_hold(&self, from: &str) -> Result<Hold, String>
A primary fed
FEED_RECHARGE_FROM: where its recharge stands.fn become_twin(&self, primary: Ipv4Addr) -> Result<(), String>
Auto Trait Implementations§
impl !Freeze for BoxDoors
impl !RefUnwindSafe for BoxDoors
impl !Send for BoxDoors
impl !Sync for BoxDoors
impl !UnwindSafe for BoxDoors
impl Unpin for BoxDoors
impl UnsafeUnpin for BoxDoors
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request