Struct lightning_signer::channel::ChannelId
source · pub struct ChannelId(/* private fields */);
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> Deserialize<'de> for ChannelId
impl<'de> Deserialize<'de> for ChannelId
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 for ChannelId
impl PartialEq for ChannelId
source§impl PartialOrd for ChannelId
impl PartialOrd 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 StructuralPartialEq for ChannelId
Auto Trait Implementations§
impl Freeze for ChannelId
impl RefUnwindSafe for ChannelId
impl Send for ChannelId
impl Sync for ChannelId
impl Unpin for ChannelId
impl UnwindSafe for ChannelId
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
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>
Converts
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>
Converts
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 more