pub struct MultiHop {
pub auth: AuthState,
pub operation: OperationId,
/* private fields */
}Expand description
Bounded 1→2→3 authorized path with middle-hop faults and cell handoff.
Fields§
§auth: AuthState§operation: OperationIdImplementations§
Source§impl MultiHop
impl MultiHop
Sourcepub fn send_stream(
&mut self,
frame: StreamFrame,
payload: &[u8],
) -> Result<(), QdnfError>
pub fn send_stream( &mut self, frame: StreamFrame, payload: &[u8], ) -> Result<(), QdnfError>
Sends frame+payload on the next hop.
Sourcepub fn send_stream_with_hop(
&mut self,
frame: StreamFrame,
payload: &[u8],
hop_limit: u8,
) -> Result<(), QdnfError>
pub fn send_stream_with_hop( &mut self, frame: StreamFrame, payload: &[u8], hop_limit: u8, ) -> Result<(), QdnfError>
Sends a stream frame pinned to a specific hop.
Source§impl MultiHop
impl MultiHop
Sourcepub fn unpublished() -> Self
pub fn unpublished() -> Self
Creates a 3-generation multihop harness in the unpublished state (empty forwarding gens, fault pipe, fresh path race).
Sourcepub fn line_with_schedule(schedule: FaultSchedule) -> Self
pub fn line_with_schedule(schedule: FaultSchedule) -> Self
A published line harness whose middle link runs the given FaultSchedule.
Sourcepub fn publish_line(&mut self) -> Result<(), QdnfError>
pub fn publish_line(&mut self) -> Result<(), QdnfError>
Publishes the line topology into the forwarding generations.
Sourcepub fn lookup_dest(&self) -> Result<u8, QdnfError>
pub fn lookup_dest(&self) -> Result<u8, QdnfError>
Looks up the next hop for DEST_NODE in the origin generation.
Sourcepub fn stream(&self) -> StreamState
pub fn stream(&self) -> StreamState
Current stream state.
Sourcepub fn last_stage(&self) -> DeliveryStage
pub fn last_stage(&self) -> DeliveryStage
The last delivery stage reached.
Sourcepub fn planned_hop_count(&self) -> u8
pub fn planned_hop_count(&self) -> u8
Hops the last plan computed.
Sourcepub fn partition_next_hop(&mut self, now_unix: u64) -> Result<(), QdnfError>
pub fn partition_next_hop(&mut self, now_unix: u64) -> Result<(), QdnfError>
Withdraw the 1→2 next hop and start the hold-down timer.
Sourcepub fn heal_next_hop(&mut self, now_unix: u64) -> Result<(), QdnfError>
pub fn heal_next_hop(&mut self, now_unix: u64) -> Result<(), QdnfError>
Re-advertise 1→2→3. A hop still in hold-down does not rejoin forwarding.
Sourcepub fn next_hop_held_down(&self, now_unix: u64) -> bool
pub fn next_hop_held_down(&self, now_unix: u64) -> bool
true when the next hop is inside its hold-down window at now_unix.
Auto Trait Implementations§
impl Freeze for MultiHop
impl RefUnwindSafe for MultiHop
impl Send for MultiHop
impl Sync for MultiHop
impl Unpin for MultiHop
impl UnsafeUnpin for MultiHop
impl UnwindSafe for MultiHop
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more