pub struct DirectRouter { /* private fields */ }Expand description
Router for direct channels (between this node and other nodes) for bolt BOLT lightning channels
Implementations§
Source§impl DirectRouter
impl DirectRouter
Sourcepub fn channels(&self) -> &Vec<LocalChannelInfo>
pub fn channels(&self) -> &Vec<LocalChannelInfo>
Method borrowing DirectRouter::channels field.
Trait Implementations§
Source§impl Clone for DirectRouter
impl Clone for DirectRouter
Source§fn clone(&self) -> DirectRouter
fn clone(&self) -> DirectRouter
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DirectRouter
impl Debug for DirectRouter
Source§impl Default for DirectRouter
impl Default for DirectRouter
Source§fn default() -> DirectRouter
fn default() -> DirectRouter
Returns the “default value” for a type. Read more
Source§impl Extension<GossipExt> for DirectRouter
impl Extension<GossipExt> for DirectRouter
fn identity(&self) -> GossipExt
Source§fn update_from_peer(&mut self, message: &Messages) -> Result<(), Error>
fn update_from_peer(&mut self, message: &Messages) -> Result<(), Error>
Updates extension state from the data taken from the message received
from the remote peer
Source§fn update_from_local(&mut self, message: &UpdateMsg) -> Result<(), Error>
fn update_from_local(&mut self, message: &UpdateMsg) -> Result<(), Error>
Updates extension state from some local data
fn load_state(&mut self, state: &RouterState)
fn store_state(&self, state: &mut RouterState)
Source§fn state_change(
&mut self,
request: &<N as Nomenclature>::UpdateRequest,
message: &mut <N as Nomenclature>::PeerMessage,
) -> Result<(), <N as Nomenclature>::Error>
fn state_change( &mut self, request: &<N as Nomenclature>::UpdateRequest, message: &mut <N as Nomenclature>::PeerMessage, ) -> Result<(), <N as Nomenclature>::Error>
Perform a sate change and produce a message which should be communicated
to peers notifying them about the state change
Source§impl PartialEq for DirectRouter
impl PartialEq for DirectRouter
Source§impl RouterExtension<GossipExt> for DirectRouter
impl RouterExtension<GossipExt> for DirectRouter
Source§fn new() -> Box<dyn RouterExtension<GossipExt>>where
Self: Sized,
fn new() -> Box<dyn RouterExtension<GossipExt>>where
Self: Sized,
Constructs boxed extension objects which can be inserted into router
extension pipeline
fn build_route( &mut self, payment: PaymentRequest, route: &mut Vec<Hop<PaymentOnion>>, )
impl Eq for DirectRouter
impl StructuralPartialEq for DirectRouter
Auto Trait Implementations§
impl Freeze for DirectRouter
impl RefUnwindSafe for DirectRouter
impl Send for DirectRouter
impl Sync for DirectRouter
impl Unpin for DirectRouter
impl UnwindSafe for DirectRouter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.