pub struct Paths { /* private fields */ }Expand description
Implementations§
Source§impl Paths
impl Paths
pub fn new() -> Self
pub fn new_with_paths(paths: Vec<(Path, u8)>) -> 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 path’s
standalone amount: The flow capacity can be limited (by other paths in this Paths)
by the remaining capacity of the anchor, edges or nodes along the path.
Sourcepub fn total_effective_amount(&self) -> usize
pub fn total_effective_amount(&self) -> usize
Sum of the effective amounts of each Path in this Paths object.
This is the total amount of (independent) evidence that the Network offers for an identity binding, based on the configured TrustAnchors.
Note that the sum of total effective trust amounts of multiple paths can exceed the value 120 (which is a limit of trust amount values in all other contexts).
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