pub struct OpenChannel(/* private fields */);Implementations§
Source§impl OpenChannel
impl OpenChannel
pub const FIELD_COUNT: usize = 19
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 chain_hash(&self) -> Byte32
pub fn channel_id(&self) -> Byte32
pub fn funding_udt_type_script(&self) -> ScriptOpt
pub fn funding_amount(&self) -> Uint128
pub fn shutdown_script(&self) -> Script
pub fn reserved_ckb_amount(&self) -> Uint64
pub fn funding_fee_rate(&self) -> Uint64
pub fn commitment_fee_rate(&self) -> Uint64
pub fn max_tlc_value_in_flight(&self) -> Uint128
pub fn max_tlc_number_in_flight(&self) -> Uint64
pub fn commitment_delay_epoch(&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 channel_flags(&self) -> Byte
pub fn as_reader<'r>(&'r self) -> OpenChannelReader<'r>
Trait Implementations§
Source§impl Clone for OpenChannel
impl Clone for OpenChannel
Source§fn clone(&self) -> OpenChannel
fn clone(&self) -> OpenChannel
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 OpenChannel
impl Debug for OpenChannel
Source§impl Default for OpenChannel
impl Default for OpenChannel
Source§impl Display for OpenChannel
impl Display for OpenChannel
Source§impl Entity for OpenChannel
impl Entity for OpenChannel
const NAME: &'static str = "OpenChannel"
type Builder = OpenChannelBuilder
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<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<OpenChannel> for FiberMessageUnion
impl From<OpenChannel> for FiberMessageUnion
Source§fn from(item: OpenChannel) -> Self
fn from(item: OpenChannel) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for OpenChannel
impl RefUnwindSafe for OpenChannel
impl Send for OpenChannel
impl Sync for OpenChannel
impl Unpin for OpenChannel
impl UnsafeUnpin for OpenChannel
impl UnwindSafe for OpenChannel
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