pub struct PropagationEdge {
pub from: NodeId,
pub to: NodeId,
pub latency_ms: u32,
pub bandwidth: u8,
pub active: bool,
}Expand description
Edge in the propagation graph
Fields§
§from: NodeIdSource node
to: NodeIdDestination node
latency_ms: u32Estimated latency in milliseconds
bandwidth: u8Bandwidth capacity (relative, 0-100)
active: boolIs this edge active?
Implementations§
Source§impl PropagationEdge
impl PropagationEdge
pub fn new(from: NodeId, to: NodeId) -> Self
pub fn with_latency(self, latency_ms: u32) -> Self
pub fn with_bandwidth(self, bandwidth: u8) -> Self
Trait Implementations§
Source§impl Clone for PropagationEdge
impl Clone for PropagationEdge
Source§fn clone(&self) -> PropagationEdge
fn clone(&self) -> PropagationEdge
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PropagationEdge
impl Debug for PropagationEdge
impl Copy for PropagationEdge
Auto Trait Implementations§
impl Freeze for PropagationEdge
impl RefUnwindSafe for PropagationEdge
impl Send for PropagationEdge
impl Sync for PropagationEdge
impl Unpin for PropagationEdge
impl UnsafeUnpin for PropagationEdge
impl UnwindSafe for PropagationEdge
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