Struct FirstHopCandidate
pub struct FirstHopCandidate<'a> {
pub details: &'a ChannelDetails,
pub payer_node_id: &'a NodeId,
/* private fields */
}
Expand description
A CandidateRouteHop::FirstHop
entry.
Fields§
§details: &'a ChannelDetails
Channel details of the first hop
ChannelDetails::get_outbound_payment_scid
MUST be Some
(indicating the channel
has been funded and is able to pay), and accessor methods may panic otherwise.
find_route
validates this prior to constructing a CandidateRouteHop
.
This is not exported to bindings users as lifetimes are not expressible in most languages.
payer_node_id: &'a NodeId
The node id of the payer, which is also the source side of this candidate route hop.
This is not exported to bindings users as lifetimes are not expressible in most languages.
Trait Implementations§
§impl<'a> Clone for FirstHopCandidate<'a>
impl<'a> Clone for FirstHopCandidate<'a>
§fn clone(&self) -> FirstHopCandidate<'a>
fn clone(&self) -> FirstHopCandidate<'a>
Returns a copy 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 moreAuto Trait Implementations§
impl<'a> Freeze for FirstHopCandidate<'a>
impl<'a> RefUnwindSafe for FirstHopCandidate<'a>
impl<'a> Send for FirstHopCandidate<'a>
impl<'a> Sync for FirstHopCandidate<'a>
impl<'a> Unpin for FirstHopCandidate<'a>
impl<'a> UnwindSafe for FirstHopCandidate<'a>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request