pub struct BlindedPathConfig {
pub min_num_real_hops: Option<u32>,
pub num_hops: Option<u32>,
pub max_num_paths: Option<u32>,
pub node_omission_list: Vec<Vec<u8>>,
pub incoming_channel_list: Vec<u64>,
}Fields§
§min_num_real_hops: Option<u32>The minimum number of real hops to include in a blinded path. This doesn’t include our node, so if the minimum is 1, then the path will contain at minimum our node along with an introduction node hop. If it is zero then the shortest path will use our node as an introduction node.
num_hops: Option<u32>The number of hops to include in a blinded path. This doesn’t include our node, so if it is 1, then the path will contain our node along with an introduction node or dummy node hop. If paths shorter than NumHops is found, then they will be padded using dummy hops.
max_num_paths: Option<u32>The maximum number of blinded paths to select and add to an invoice.
node_omission_list: Vec<Vec<u8>>A list of node IDs of nodes that should not be used in any of our generated blinded paths.
incoming_channel_list: Vec<u64>The chained channels list specified via channel id (separated by commas), starting from a channel owned by the receiver node.
Implementations§
Source§impl BlindedPathConfig
impl BlindedPathConfig
Sourcepub fn min_num_real_hops(&self) -> u32
pub fn min_num_real_hops(&self) -> u32
Returns the value of min_num_real_hops, or the default value if min_num_real_hops is unset.
Sourcepub fn num_hops(&self) -> u32
pub fn num_hops(&self) -> u32
Returns the value of num_hops, or the default value if num_hops is unset.
Sourcepub fn max_num_paths(&self) -> u32
pub fn max_num_paths(&self) -> u32
Returns the value of max_num_paths, or the default value if max_num_paths is unset.
Trait Implementations§
Source§impl Clone for BlindedPathConfig
impl Clone for BlindedPathConfig
Source§fn clone(&self) -> BlindedPathConfig
fn clone(&self) -> BlindedPathConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BlindedPathConfig
impl Debug for BlindedPathConfig
Source§impl Default for BlindedPathConfig
impl Default for BlindedPathConfig
Source§impl Hash for BlindedPathConfig
impl Hash for BlindedPathConfig
Source§impl Message for BlindedPathConfig
impl Message for BlindedPathConfig
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for BlindedPathConfig
impl PartialEq for BlindedPathConfig
impl Eq for BlindedPathConfig
impl StructuralPartialEq for BlindedPathConfig
Auto Trait Implementations§
impl Freeze for BlindedPathConfig
impl RefUnwindSafe for BlindedPathConfig
impl Send for BlindedPathConfig
impl Sync for BlindedPathConfig
impl Unpin for BlindedPathConfig
impl UnwindSafe for BlindedPathConfig
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
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
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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>
T in a tonic::Request