pub struct NoPathSelector;Expand description
A path selector that does not resolve any path, always returns PathError::PathNotFound.
Trait Implementations§
Source§impl Clone for NoPathSelector
impl Clone for NoPathSelector
Source§fn clone(&self) -> NoPathSelector
fn clone(&self) -> NoPathSelector
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 NoPathSelector
impl Debug for NoPathSelector
Source§impl Default for NoPathSelector
impl Default for NoPathSelector
Source§fn default() -> NoPathSelector
fn default() -> NoPathSelector
Returns the “default value” for a type. Read more
Source§impl PathSelector for NoPathSelector
impl PathSelector for NoPathSelector
Source§fn select_path<'life0, 'async_trait>(
&'life0 self,
source: Address,
destination: Address,
min_hops: usize,
_max_hops: usize,
) -> Pin<Box<dyn Future<Output = Result<ChannelPath, PathError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn select_path<'life0, 'async_trait>(
&'life0 self,
source: Address,
destination: Address,
min_hops: usize,
_max_hops: usize,
) -> Pin<Box<dyn Future<Output = Result<ChannelPath, PathError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Select a path of maximum
max_hops from source to destination in the given channel graph.
NOTE: the resulting path does not contain source but does contain destination.
Fails if no such path can be found.Source§fn select_auto_path<'life0, 'async_trait>(
&'life0 self,
source: Address,
destination: Address,
) -> Pin<Box<dyn Future<Output = Result<ChannelPath, PathError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn select_auto_path<'life0, 'async_trait>(
&'life0 self,
source: Address,
destination: Address,
) -> Pin<Box<dyn Future<Output = Result<ChannelPath, PathError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Constructs a new valid packet
Path from source to the given destination.
This method uses INTERMEDIATE_HOPS as the maximum number of hops and 1 hop as a minimum.impl Copy for NoPathSelector
Auto Trait Implementations§
impl Freeze for NoPathSelector
impl RefUnwindSafe for NoPathSelector
impl Send for NoPathSelector
impl Sync for NoPathSelector
impl Unpin for NoPathSelector
impl UnwindSafe for NoPathSelector
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