pub struct ReadOnlyNetworkGraph<'a> { /* private fields */ }
Expand description

A read-only view of NetworkGraph.

Implementations

Returns all known valid channels’ short ids along with announced channel info.

(C-not exported) because we have no mapping for BTreeMaps

Returns information on a channel with the given id.

Returns all known nodes’ public keys along with announced node info.

(C-not exported) because we have no mapping for BTreeMaps

Returns information on a node with the given id.

Get network addresses by node id. Returns None if the requested node is completely unknown, or if node announcement for the node was never received.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.