pub struct ChannelUpdate(/* private fields */);Implementations§
Source§impl ChannelUpdate
impl ChannelUpdate
pub const TOTAL_SIZE: usize = 204
pub const FIELD_SIZES: [usize; 10]
pub const FIELD_COUNT: usize = 10
pub fn signature(&self) -> EcdsaSignature
pub fn chain_hash(&self) -> Byte32
pub fn channel_outpoint(&self) -> OutPoint
pub fn timestamp(&self) -> Uint64
pub fn message_flags(&self) -> Uint32
pub fn channel_flags(&self) -> Uint32
pub fn tlc_expiry_delta(&self) -> Uint64
pub fn tlc_minimum_value(&self) -> Uint128
pub fn tlc_maximum_value(&self) -> Uint128
pub fn tlc_fee_proportional_millionths(&self) -> Uint128
pub fn as_reader<'r>(&'r self) -> ChannelUpdateReader<'r>
Trait Implementations§
Source§impl Clone for ChannelUpdate
impl Clone for ChannelUpdate
Source§fn clone(&self) -> ChannelUpdate
fn clone(&self) -> ChannelUpdate
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 ChannelUpdate
impl Debug for ChannelUpdate
Source§impl Default for ChannelUpdate
impl Default for ChannelUpdate
Source§impl Display for ChannelUpdate
impl Display for ChannelUpdate
Source§impl Entity for ChannelUpdate
impl Entity for ChannelUpdate
const NAME: &'static str = "ChannelUpdate"
type Builder = ChannelUpdateBuilder
fn new_unchecked(data: Bytes) -> Self
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> VerificationResult<Self>
fn from_compatible_slice(slice: &[u8]) -> VerificationResult<Self>
fn new_builder() -> Self::Builder
fn as_builder(self) -> Self::Builder
Source§impl From<ChannelUpdate> for BroadcastMessage
impl From<ChannelUpdate> for BroadcastMessage
Source§fn from(value: ChannelUpdate) -> Self
fn from(value: ChannelUpdate) -> Self
Converts to this type from the input type.
Source§impl From<ChannelUpdate> for BroadcastMessageUnion
impl From<ChannelUpdate> for BroadcastMessageUnion
Source§fn from(item: ChannelUpdate) -> Self
fn from(item: ChannelUpdate) -> Self
Converts to this type from the input type.
Source§impl From<ChannelUpdate> for ChannelUpdate
impl From<ChannelUpdate> for ChannelUpdate
Source§fn from(channel_update: ChannelUpdate) -> Self
fn from(channel_update: ChannelUpdate) -> Self
Converts to this type from the input type.
Source§impl From<ChannelUpdate> for ChannelUpdateOpt
impl From<ChannelUpdate> for ChannelUpdateOpt
Source§fn from(value: ChannelUpdate) -> Self
fn from(value: ChannelUpdate) -> Self
Converts to this type from the input type.
Source§impl LowerHex for ChannelUpdate
impl LowerHex for ChannelUpdate
Source§impl TryFrom<ChannelUpdate> for ChannelUpdate
impl TryFrom<ChannelUpdate> for ChannelUpdate
Auto Trait Implementations§
impl !Freeze for ChannelUpdate
impl RefUnwindSafe for ChannelUpdate
impl Send for ChannelUpdate
impl Sync for ChannelUpdate
impl Unpin for ChannelUpdate
impl UnsafeUnpin for ChannelUpdate
impl UnwindSafe for ChannelUpdate
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