Struct lightning_signer::channel::ChannelId
source · pub struct ChannelId(_);
Expand description
Channel identifier
This ID is not related to the channel IDs in the Lightning protocol.
A channel may have more than one ID.
The channel keys are derived from this and a base key.
Implementations§
Trait Implementations§
source§impl<'de> DeserializeAs<'de, ChannelId> for ChannelIdHandler
impl<'de> DeserializeAs<'de, ChannelId> for ChannelIdHandler
source§fn deserialize_as<D>(deserializer: D) -> Result<ChannelId, D::Error>where
D: Deserializer<'de>,
fn deserialize_as<D>(deserializer: D) -> Result<ChannelId, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer.
source§impl Ord for ChannelId
impl Ord for ChannelId
source§impl PartialEq<ChannelId> for ChannelId
impl PartialEq<ChannelId> for ChannelId
source§impl PartialOrd<ChannelId> for ChannelId
impl PartialOrd<ChannelId> for ChannelId
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 moresource§impl SerializeAs<ChannelId> for ChannelIdHandler
impl SerializeAs<ChannelId> for ChannelIdHandler
source§fn serialize_as<S>(source: &ChannelId, serializer: S) -> Result<S::Ok, S::Error>where
S: Serializer,
fn serialize_as<S>(source: &ChannelId, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,
Serialize this value into the given Serde serializer.
impl Eq for ChannelId
impl StructuralEq for ChannelId
impl StructuralPartialEq for ChannelId
Auto Trait Implementations§
impl RefUnwindSafe for ChannelId
impl Send for ChannelId
impl Sync for ChannelId
impl Unpin for ChannelId
impl UnwindSafe for ChannelId
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.