pub struct RouteHint { /* private fields */ }Expand description
A route hint for finding a path to a destination.
Route hints are used when the destination has private channels that are not publicly announced.
Implementations§
Source§impl RouteHint
impl RouteHint
Sourcepub fn with_hops(hops: Vec<RouteHintHop>) -> Self
pub fn with_hops(hops: Vec<RouteHintHop>) -> Self
Create a route hint with the given hops.
Sourcepub fn add_hop(&mut self, hop: RouteHintHop)
pub fn add_hop(&mut self, hop: RouteHintHop)
Add a hop to the route hint.
Sourcepub fn hops(&self) -> &[RouteHintHop]
pub fn hops(&self) -> &[RouteHintHop]
Get the hops in this route hint.
Trait Implementations§
impl Eq for RouteHint
impl StructuralPartialEq for RouteHint
Auto Trait Implementations§
impl Freeze for RouteHint
impl RefUnwindSafe for RouteHint
impl Send for RouteHint
impl Sync for RouteHint
impl Unpin for RouteHint
impl UnwindSafe for RouteHint
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