pub struct Paths { /* private fields */ }Expand description
Implementations§
Source§impl Paths
impl Paths
pub fn new() -> Self
pub fn get(&self) -> &[(Path, u8)]
Sourcepub fn add(&mut self, path: Path, effective_amount: u8)
pub fn add(&mut self, path: Path, effective_amount: u8)
Add a Path to this list of paths.
The effective_amount of the path in this set of paths can be smaller than the paths
actual amount (it can be limited by the available remaining flow along one of its edges,
caused by other paths in this Paths)
Sourcepub fn total_amount(&self) -> usize
pub fn total_amount(&self) -> usize
Sum of the effective amounts of each Path in this Paths object.
This is the total amount of evidence that the Network offers for an identity binding, based on the configured TrustAnchors
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Paths
impl RefUnwindSafe for Paths
impl Send for Paths
impl Sync for Paths
impl Unpin for Paths
impl UnwindSafe for Paths
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