#[repr(transparent)]pub struct LxUserChannelId(pub [u8; 16]);Expand description
See: lightning::ln::channel_state::ChannelDetails::user_channel_id
The user channel id lets us consistently identify a channel through its whole lifecycle.
The main issue is that we don’t know the LxChannelId until we’ve
actually talked to the remote node and agreed to open a channel. The second
issue is that we can’t easily observe and correlate any errors from channel
negotiation beyond some basic checks before we send any messages.
Tuple Fields§
§0: [u8; 16]Implementations§
Source§impl LxUserChannelId
impl LxUserChannelId
pub fn to_u128(self) -> u128
pub fn from_rng<R: RngCore>(rng: &mut R) -> Self
pub fn derive_temporary_channel_id(&self) -> LxChannelId
Trait Implementations§
Source§impl AsRef<[u8]> for LxUserChannelId
impl AsRef<[u8]> for LxUserChannelId
Source§impl ByteArray<16> for LxUserChannelId
impl ByteArray<16> for LxUserChannelId
fn from_array(array: [u8; 16]) -> Self
fn to_array(&self) -> [u8; 16]
fn as_array(&self) -> &[u8; 16]
fn as_slice(&self) -> &[u8] ⓘ
fn to_vec(&self) -> Vec<u8> ⓘ
fn try_from_slice(slice: &[u8]) -> Result<Self, TryFromSliceError>
fn try_from_vec(vec: Vec<u8>) -> Result<Self, TryFromSliceError>
fn from_hex(s: &str) -> Result<Self, DecodeError>
fn to_hex(&self) -> String
fn as_hex_display(&self) -> HexDisplay<'_>
fn fmt_as_hex(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Source§impl Clone for LxUserChannelId
impl Clone for LxUserChannelId
Source§fn clone(&self) -> LxUserChannelId
fn clone(&self) -> LxUserChannelId
Returns a duplicate 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 LxUserChannelId
impl Debug for LxUserChannelId
Source§impl<'de> Deserialize<'de> for LxUserChannelId
impl<'de> Deserialize<'de> for LxUserChannelId
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 Display for LxUserChannelId
impl Display for LxUserChannelId
Source§impl From<LxUserChannelId> for u128
impl From<LxUserChannelId> for u128
Source§fn from(value: LxUserChannelId) -> Self
fn from(value: LxUserChannelId) -> Self
Converts to this type from the input type.
Source§impl From<u128> for LxUserChannelId
impl From<u128> for LxUserChannelId
Source§impl FromHex for LxUserChannelId
impl FromHex for LxUserChannelId
Source§impl FromStr for LxUserChannelId
impl FromStr for LxUserChannelId
Source§impl Hash for LxUserChannelId
impl Hash for LxUserChannelId
Source§impl PartialEq for LxUserChannelId
impl PartialEq for LxUserChannelId
Source§impl RefCast for LxUserChannelId
impl RefCast for LxUserChannelId
Source§impl Serialize for LxUserChannelId
impl Serialize for LxUserChannelId
impl Copy for LxUserChannelId
impl Eq for LxUserChannelId
impl StructuralPartialEq for LxUserChannelId
Auto Trait Implementations§
impl Freeze for LxUserChannelId
impl RefUnwindSafe for LxUserChannelId
impl Send for LxUserChannelId
impl Sync for LxUserChannelId
impl Unpin for LxUserChannelId
impl UnsafeUnpin for LxUserChannelId
impl UnwindSafe for LxUserChannelId
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