#[repr(transparent)]pub struct UserChannelId(pub [u8; 16]);Expand description
A client-generated id that identifies a channel throughout its entire
lifecycle, including before the channel is confirmed on-chain and assigned
its ChannelId.
Tuple Fields§
§0: [u8; 16]Implementations§
Trait Implementations§
Source§impl AsRef<[u8]> for UserChannelId
impl AsRef<[u8]> for UserChannelId
Source§impl ByteArray<16> for UserChannelId
impl ByteArray<16> for UserChannelId
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 UserChannelId
impl Clone for UserChannelId
Source§fn clone(&self) -> UserChannelId
fn clone(&self) -> UserChannelId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UserChannelId
Source§impl Debug for UserChannelId
impl Debug for UserChannelId
Source§impl<'de> Deserialize<'de> for UserChannelId
impl<'de> Deserialize<'de> for UserChannelId
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 UserChannelId
impl Display for UserChannelId
impl Eq for UserChannelId
Source§impl From<UserChannelId> for u128
impl From<UserChannelId> for u128
Source§fn from(value: UserChannelId) -> Self
fn from(value: UserChannelId) -> Self
Converts to this type from the input type.
Source§impl From<u128> for UserChannelId
impl From<u128> for UserChannelId
Source§impl FromHex for UserChannelId
impl FromHex for UserChannelId
Source§impl FromStr for UserChannelId
impl FromStr for UserChannelId
Source§impl Hash for UserChannelId
impl Hash for UserChannelId
Source§impl PartialEq for UserChannelId
impl PartialEq for UserChannelId
Source§impl RefCast for UserChannelId
impl RefCast for UserChannelId
Source§impl Serialize for UserChannelId
impl Serialize for UserChannelId
impl StructuralPartialEq for UserChannelId
Auto Trait Implementations§
impl Freeze for UserChannelId
impl RefUnwindSafe for UserChannelId
impl Send for UserChannelId
impl Sync for UserChannelId
impl Unpin for UserChannelId
impl UnsafeUnpin for UserChannelId
impl UnwindSafe for UserChannelId
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