pub struct FiberMessage(/* private fields */);Implementations§
Source§impl FiberMessage
impl FiberMessage
pub const ITEMS_COUNT: usize = 19
pub fn item_id(&self) -> Number
pub fn to_enum(&self) -> FiberMessageUnion
pub fn as_reader<'r>(&'r self) -> FiberMessageReader<'r>
Trait Implementations§
Source§impl Clone for FiberMessage
impl Clone for FiberMessage
Source§fn clone(&self) -> FiberMessage
fn clone(&self) -> FiberMessage
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 FiberMessage
impl Debug for FiberMessage
Source§impl Default for FiberMessage
impl Default for FiberMessage
Source§impl Display for FiberMessage
impl Display for FiberMessage
Source§impl Entity for FiberMessage
impl Entity for FiberMessage
const NAME: &'static str = "FiberMessage"
type Builder = FiberMessageBuilder
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<AcceptChannel> for FiberMessage
impl From<AcceptChannel> for FiberMessage
Source§fn from(value: AcceptChannel) -> Self
fn from(value: AcceptChannel) -> Self
Converts to this type from the input type.
Source§impl From<AddTlc> for FiberMessage
impl From<AddTlc> for FiberMessage
Source§impl From<AnnouncementSignatures> for FiberMessage
impl From<AnnouncementSignatures> for FiberMessage
Source§fn from(value: AnnouncementSignatures) -> Self
fn from(value: AnnouncementSignatures) -> Self
Converts to this type from the input type.
Source§impl From<ChannelReady> for FiberMessage
impl From<ChannelReady> for FiberMessage
Source§fn from(value: ChannelReady) -> Self
fn from(value: ChannelReady) -> Self
Converts to this type from the input type.
Source§impl From<ClosingSigned> for FiberMessage
impl From<ClosingSigned> for FiberMessage
Source§fn from(value: ClosingSigned) -> Self
fn from(value: ClosingSigned) -> Self
Converts to this type from the input type.
Source§impl From<CommitmentSigned> for FiberMessage
impl From<CommitmentSigned> for FiberMessage
Source§fn from(value: CommitmentSigned) -> Self
fn from(value: CommitmentSigned) -> Self
Converts to this type from the input type.
Source§impl From<Init> for FiberMessage
impl From<Init> for FiberMessage
Source§impl From<OpenChannel> for FiberMessage
impl From<OpenChannel> for FiberMessage
Source§fn from(value: OpenChannel) -> Self
fn from(value: OpenChannel) -> Self
Converts to this type from the input type.
Source§impl From<ReestablishChannel> for FiberMessage
impl From<ReestablishChannel> for FiberMessage
Source§fn from(value: ReestablishChannel) -> Self
fn from(value: ReestablishChannel) -> Self
Converts to this type from the input type.
Source§impl From<RemoveTlc> for FiberMessage
impl From<RemoveTlc> for FiberMessage
Source§impl From<RevokeAndAck> for FiberMessage
impl From<RevokeAndAck> for FiberMessage
Source§fn from(value: RevokeAndAck) -> Self
fn from(value: RevokeAndAck) -> Self
Converts to this type from the input type.
Source§impl From<Shutdown> for FiberMessage
impl From<Shutdown> for FiberMessage
Source§impl From<TxAbort> for FiberMessage
impl From<TxAbort> for FiberMessage
Source§impl From<TxAckRBF> for FiberMessage
impl From<TxAckRBF> for FiberMessage
Source§impl From<TxComplete> for FiberMessage
impl From<TxComplete> for FiberMessage
Source§fn from(value: TxComplete) -> Self
fn from(value: TxComplete) -> Self
Converts to this type from the input type.
Source§impl From<TxInitRBF> for FiberMessage
impl From<TxInitRBF> for FiberMessage
Source§impl From<TxSignatures> for FiberMessage
impl From<TxSignatures> for FiberMessage
Source§fn from(value: TxSignatures) -> Self
fn from(value: TxSignatures) -> Self
Converts to this type from the input type.
Source§impl From<TxUpdate> for FiberMessage
impl From<TxUpdate> for FiberMessage
Source§impl From<UpdateTlcInfo> for FiberMessage
impl From<UpdateTlcInfo> for FiberMessage
Source§fn from(value: UpdateTlcInfo) -> Self
fn from(value: UpdateTlcInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for FiberMessage
impl RefUnwindSafe for FiberMessage
impl Send for FiberMessage
impl Sync for FiberMessage
impl Unpin for FiberMessage
impl UnsafeUnpin for FiberMessage
impl UnwindSafe for FiberMessage
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