pub struct GossipRouter { /* private fields */ }Expand description
BOLT-7 gossip-based router
Implementations§
Source§impl GossipRouter
impl GossipRouter
Sourcepub fn channels(&self) -> &Vec<GossipChannelInfo>
pub fn channels(&self) -> &Vec<GossipChannelInfo>
Method borrowing GossipRouter::channels field.
Trait Implementations§
Source§impl Clone for GossipRouter
impl Clone for GossipRouter
Source§fn clone(&self) -> GossipRouter
fn clone(&self) -> GossipRouter
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 GossipRouter
impl Debug for GossipRouter
Source§impl Default for GossipRouter
impl Default for GossipRouter
Source§fn default() -> GossipRouter
fn default() -> GossipRouter
Returns the “default value” for a type. Read more
Source§impl Extension<GossipExt> for GossipRouter
impl Extension<GossipExt> for GossipRouter
fn identity(&self) -> GossipExt
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
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
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 GossipRouter
impl PartialEq for GossipRouter
Source§impl RouterExtension<GossipExt> for GossipRouter
impl RouterExtension<GossipExt> for GossipRouter
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 GossipRouter
impl StructuralPartialEq for GossipRouter
Auto Trait Implementations§
impl Freeze for GossipRouter
impl RefUnwindSafe for GossipRouter
impl Send for GossipRouter
impl Sync for GossipRouter
impl Unpin for GossipRouter
impl UnwindSafe for GossipRouter
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.