pub struct ChannelUpdateReader<'r>(/* private fields */);Implementations§
Source§impl<'r> ChannelUpdateReader<'r>
impl<'r> ChannelUpdateReader<'r>
pub const TOTAL_SIZE: usize = 204
pub const FIELD_SIZES: [usize; 10]
pub const FIELD_COUNT: usize = 10
pub fn signature(&self) -> EcdsaSignatureReader<'r>
pub fn chain_hash(&self) -> Byte32Reader<'r>
pub fn channel_outpoint(&self) -> OutPointReader<'r>
pub fn timestamp(&self) -> Uint64Reader<'r>
pub fn message_flags(&self) -> Uint32Reader<'r>
pub fn channel_flags(&self) -> Uint32Reader<'r>
pub fn tlc_expiry_delta(&self) -> Uint64Reader<'r>
pub fn tlc_minimum_value(&self) -> Uint128Reader<'r>
pub fn tlc_maximum_value(&self) -> Uint128Reader<'r>
pub fn tlc_fee_proportional_millionths(&self) -> Uint128Reader<'r>
Trait Implementations§
Source§impl<'r> Clone for ChannelUpdateReader<'r>
impl<'r> Clone for ChannelUpdateReader<'r>
Source§fn clone(&self) -> ChannelUpdateReader<'r>
fn clone(&self) -> ChannelUpdateReader<'r>
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<'r> Debug for ChannelUpdateReader<'r>
impl<'r> Debug for ChannelUpdateReader<'r>
Source§impl<'r> Display for ChannelUpdateReader<'r>
impl<'r> Display for ChannelUpdateReader<'r>
Source§impl<'r> From<ChannelUpdateReader<'r>> for BroadcastMessageUnionReader<'r>
impl<'r> From<ChannelUpdateReader<'r>> for BroadcastMessageUnionReader<'r>
Source§fn from(item: ChannelUpdateReader<'r>) -> Self
fn from(item: ChannelUpdateReader<'r>) -> Self
Converts to this type from the input type.
Source§impl<'r> LowerHex for ChannelUpdateReader<'r>
impl<'r> LowerHex for ChannelUpdateReader<'r>
Source§impl<'r> Reader<'r> for ChannelUpdateReader<'r>
impl<'r> Reader<'r> for ChannelUpdateReader<'r>
const NAME: &'static str = "ChannelUpdateReader"
type Entity = ChannelUpdate
fn to_entity(&self) -> Self::Entity
fn new_unchecked(slice: &'r [u8]) -> Self
fn as_slice(&self) -> &'r [u8] ⓘ
fn verify(slice: &[u8], _compatible: bool) -> VerificationResult<()>
fn from_slice(slice: &'r [u8]) -> Result<Self, VerificationError>
fn from_compatible_slice(slice: &'r [u8]) -> Result<Self, VerificationError>
impl<'r> Copy for ChannelUpdateReader<'r>
Auto Trait Implementations§
impl<'r> Freeze for ChannelUpdateReader<'r>
impl<'r> RefUnwindSafe for ChannelUpdateReader<'r>
impl<'r> Send for ChannelUpdateReader<'r>
impl<'r> Sync for ChannelUpdateReader<'r>
impl<'r> Unpin for ChannelUpdateReader<'r>
impl<'r> UnsafeUnpin for ChannelUpdateReader<'r>
impl<'r> UnwindSafe for ChannelUpdateReader<'r>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'r, R> FromSliceShouldBeOk<'r> for Rwhere
R: Reader<'r>,
impl<'r, R> FromSliceShouldBeOk<'r> for Rwhere
R: Reader<'r>,
Source§fn from_slice_should_be_ok(slice: &'r [u8]) -> R
fn from_slice_should_be_ok(slice: &'r [u8]) -> R
Unwraps the result of
from_slice(..) with confidence and we assume that it’s impossible to fail.Source§fn from_compatible_slice_should_be_ok(slice: &'r [u8]) -> R
fn from_compatible_slice_should_be_ok(slice: &'r [u8]) -> R
Unwraps the result of
from_compatible_slice(..) with confidence and we assume that it’s impossible to fail.