Struct lnp::payment::ChannelId [−][src]
Lightning network channel Id
Implementations
impl ChannelId[src]
pub fn with(funding_outpoint: OutPoint) -> Self[src]
pub fn is_wildcard(&self) -> bool[src]
With some lightning messages (like error) channel id consisting of all
zeros has a special meaning of “applicable to all opened channels”. This
function allow to detect this kind of ChannelId
Trait Implementations
impl AsMut<<ChannelId as Wrapper>::Inner> for ChannelId[src]
impl AsRef<<ChannelId as Wrapper>::Inner> for ChannelId[src]
impl Borrow<<ChannelId as Wrapper>::Inner> for ChannelId[src]
impl BorrowMut<<ChannelId as Wrapper>::Inner> for ChannelId[src]
fn borrow_mut(&mut self) -> &mut Self::Inner[src]
impl Clone for ChannelId[src]
impl Copy for ChannelId[src]
impl Debug for ChannelId[src]
impl Default for ChannelId[src]
impl Deref for ChannelId[src]
type Target = Self::Inner
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target[src]
impl DerefMut for ChannelId[src]
impl Display for ChannelId[src]
impl Eq for ChannelId[src]
impl From<ChannelId> for TempChannelId[src]
impl From<Slice32> for ChannelId[src]
impl From<TempChannelId> for ChannelId[src]
fn from(temp: TempChannelId) -> Self[src]
impl FromHex for ChannelId[src]
fn from_byte_iter<I>(iter: I) -> Result<Self, Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator, [src]
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
pub fn from_hex(s: &str) -> Result<Self, Error>
impl FromStr for ChannelId[src]
type Err = <Self::Inner as FromStr>::Err
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>[src]
impl Hash for ChannelId[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl LightningDecode for ChannelId[src]
fn lightning_decode<D: Read>(d: D) -> Result<Self, Error>[src]
pub fn lightning_deserialize(data: &impl AsRef<[u8]>) -> Result<Self, Error>[src]
impl LightningEncode for ChannelId[src]
fn lightning_encode<E: Write>(&self, e: E) -> Result<usize, Error>[src]
pub fn lightning_serialize(&self) -> Vec<u8, Global>[src]
impl LowerHex for ChannelId[src]
impl Ord for ChannelId[src]
fn cmp(&self, other: &ChannelId) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<ChannelId> for ChannelId[src]
impl PartialOrd<ChannelId> for ChannelId[src]
fn partial_cmp(&self, other: &ChannelId) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl StrictDecode for ChannelId[src]
fn strict_decode<D: Read>(d: D) -> Result<Self, Error>[src]
pub fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>[src]
impl StrictEncode for ChannelId[src]
fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>[src]
pub fn strict_serialize(&self) -> Result<Vec<u8, Global>, Error>[src]
impl StructuralEq for ChannelId[src]
impl StructuralPartialEq for ChannelId[src]
impl UpperHex for ChannelId[src]
impl Wrapper for ChannelId[src]
type Inner = Slice32
Inner type wrapped by the current newtype
fn from_inner(inner: Self::Inner) -> Self[src]
fn as_inner(&self) -> &Self::Inner[src]
fn as_inner_mut(&mut self) -> &mut Self::Inner[src]
fn into_inner(self) -> Self::Inner[src]
pub fn to_inner(&self) -> Self::Inner[src]
pub fn copy(&self) -> Self where
Self::Inner: Copy, [src]
Self::Inner: Copy,
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
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToHex for T where
T: LowerHex,
T: LowerHex,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,