pub struct ChannelUpdate {
pub signature: Signature,
pub contents: UnsignedChannelUpdate,
}
Expand description
A channel_update message to be sent or received from a peer
Fields
signature: Signature
A signature of the channel update
contents: UnsignedChannelUpdate
The actual channel update
Trait Implementations
sourceimpl Clone for ChannelUpdate
impl Clone for ChannelUpdate
sourcefn clone(&self) -> ChannelUpdate
fn clone(&self) -> ChannelUpdate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ChannelUpdate
impl Debug for ChannelUpdate
sourceimpl PartialEq<ChannelUpdate> for ChannelUpdate
impl PartialEq<ChannelUpdate> for ChannelUpdate
sourcefn eq(&self, other: &ChannelUpdate) -> bool
fn eq(&self, other: &ChannelUpdate) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ChannelUpdate) -> bool
fn ne(&self, other: &ChannelUpdate) -> bool
This method tests for !=
.
sourceimpl Readable for ChannelUpdate
impl Readable for ChannelUpdate
sourceimpl Writeable for ChannelUpdate
impl Writeable for ChannelUpdate
sourcefn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Gets the length of this object after it has been serialized. This can be overridden to optimize cases where we prepend an object with its length. Read more
impl StructuralPartialEq for ChannelUpdate
Auto Trait Implementations
impl RefUnwindSafe for ChannelUpdate
impl Send for ChannelUpdate
impl Sync for ChannelUpdate
impl Unpin for ChannelUpdate
impl UnwindSafe for ChannelUpdate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> MaybeReadable for T where
T: Readable,
impl<T> MaybeReadable for T where
T: Readable,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more