Enum lnd_grpc_rust::peersrpc::FeatureSet
source · #[repr(i32)]pub enum FeatureSet {
SetInit = 0,
SetLegacyGlobal = 1,
SetNodeAnn = 2,
SetInvoice = 3,
SetInvoiceAmp = 4,
}
Variants§
SetInit = 0
SET_INIT identifies features that should be sent in an Init message to a remote peer.
SetLegacyGlobal = 1
SET_LEGACY_GLOBAL identifies features that should be set in the legacy GlobalFeatures field of an Init message, which maintains backwards compatibility with nodes that haven’t implemented flat features.
SetNodeAnn = 2
SET_NODE_ANN identifies features that should be advertised on node announcements.
SetInvoice = 3
SET_INVOICE identifies features that should be advertised on invoices generated by the daemon.
SetInvoiceAmp = 4
SET_INVOICE_AMP identifies the features that should be advertised on AMP invoices generated by the daemon.
Implementations§
Trait Implementations§
source§impl Clone for FeatureSet
impl Clone for FeatureSet
source§fn clone(&self) -> FeatureSet
fn clone(&self) -> FeatureSet
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 moresource§impl Debug for FeatureSet
impl Debug for FeatureSet
source§impl Default for FeatureSet
impl Default for FeatureSet
source§fn default() -> FeatureSet
fn default() -> FeatureSet
Returns the “default value” for a type. Read more
source§impl From<FeatureSet> for i32
impl From<FeatureSet> for i32
source§fn from(value: FeatureSet) -> i32
fn from(value: FeatureSet) -> i32
Converts to this type from the input type.
source§impl Hash for FeatureSet
impl Hash for FeatureSet
source§impl Ord for FeatureSet
impl Ord for FeatureSet
source§fn cmp(&self, other: &FeatureSet) -> Ordering
fn cmp(&self, other: &FeatureSet) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for FeatureSet
impl PartialEq for FeatureSet
source§fn eq(&self, other: &FeatureSet) -> bool
fn eq(&self, other: &FeatureSet) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FeatureSet
impl PartialOrd for FeatureSet
source§fn partial_cmp(&self, other: &FeatureSet) -> Option<Ordering>
fn partial_cmp(&self, other: &FeatureSet) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for FeatureSet
impl Eq for FeatureSet
impl StructuralPartialEq for FeatureSet
Auto Trait Implementations§
impl RefUnwindSafe for FeatureSet
impl Send for FeatureSet
impl Sync for FeatureSet
impl Unpin for FeatureSet
impl UnwindSafe for FeatureSet
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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