pub struct AcceptChannel(/* private fields */);Implementations§
Source§impl AcceptChannel
impl AcceptChannel
pub const FIELD_COUNT: usize = 13
pub fn total_size(&self) -> usize
pub fn field_count(&self) -> usize
pub fn count_extra_fields(&self) -> usize
pub fn has_extra_fields(&self) -> bool
pub fn channel_id(&self) -> Byte32
pub fn funding_amount(&self) -> Uint128
pub fn shutdown_script(&self) -> Script
pub fn reserved_ckb_amount(&self) -> Uint64
pub fn max_tlc_value_in_flight(&self) -> Uint128
pub fn max_tlc_number_in_flight(&self) -> Uint64
pub fn funding_pubkey(&self) -> Pubkey
pub fn tlc_basepoint(&self) -> Pubkey
pub fn first_per_commitment_point(&self) -> Pubkey
pub fn second_per_commitment_point(&self) -> Pubkey
pub fn channel_announcement_nonce(&self) -> PubNonceOpt
pub fn next_commitment_nonce(&self) -> PubNonce
pub fn next_revocation_nonce(&self) -> PubNonce
pub fn as_reader<'r>(&'r self) -> AcceptChannelReader<'r>
Trait Implementations§
Source§impl Clone for AcceptChannel
impl Clone for AcceptChannel
Source§fn clone(&self) -> AcceptChannel
fn clone(&self) -> AcceptChannel
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 AcceptChannel
impl Debug for AcceptChannel
Source§impl Default for AcceptChannel
impl Default for AcceptChannel
Source§impl Display for AcceptChannel
impl Display for AcceptChannel
Source§impl Entity for AcceptChannel
impl Entity for AcceptChannel
const NAME: &'static str = "AcceptChannel"
type Builder = AcceptChannelBuilder
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<AcceptChannel> for FiberMessageUnion
impl From<AcceptChannel> for FiberMessageUnion
Source§fn from(item: AcceptChannel) -> Self
fn from(item: AcceptChannel) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for AcceptChannel
impl RefUnwindSafe for AcceptChannel
impl Send for AcceptChannel
impl Sync for AcceptChannel
impl Unpin for AcceptChannel
impl UnsafeUnpin for AcceptChannel
impl UnwindSafe for AcceptChannel
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