pub struct AcceptChannelReader<'r>(/* private fields */);Implementations§
Source§impl<'r> AcceptChannelReader<'r>
impl<'r> AcceptChannelReader<'r>
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) -> Byte32Reader<'r>
pub fn funding_amount(&self) -> Uint128Reader<'r>
pub fn shutdown_script(&self) -> ScriptReader<'r>
pub fn reserved_ckb_amount(&self) -> Uint64Reader<'r>
pub fn max_tlc_value_in_flight(&self) -> Uint128Reader<'r>
pub fn max_tlc_number_in_flight(&self) -> Uint64Reader<'r>
pub fn funding_pubkey(&self) -> PubkeyReader<'r>
pub fn tlc_basepoint(&self) -> PubkeyReader<'r>
pub fn first_per_commitment_point(&self) -> PubkeyReader<'r>
pub fn second_per_commitment_point(&self) -> PubkeyReader<'r>
pub fn channel_announcement_nonce(&self) -> PubNonceOptReader<'r>
pub fn next_commitment_nonce(&self) -> PubNonceReader<'r>
pub fn next_revocation_nonce(&self) -> PubNonceReader<'r>
Trait Implementations§
Source§impl<'r> Clone for AcceptChannelReader<'r>
impl<'r> Clone for AcceptChannelReader<'r>
Source§fn clone(&self) -> AcceptChannelReader<'r>
fn clone(&self) -> AcceptChannelReader<'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 AcceptChannelReader<'r>
impl<'r> Debug for AcceptChannelReader<'r>
Source§impl<'r> Display for AcceptChannelReader<'r>
impl<'r> Display for AcceptChannelReader<'r>
Source§impl<'r> From<AcceptChannelReader<'r>> for FiberMessageUnionReader<'r>
impl<'r> From<AcceptChannelReader<'r>> for FiberMessageUnionReader<'r>
Source§fn from(item: AcceptChannelReader<'r>) -> Self
fn from(item: AcceptChannelReader<'r>) -> Self
Converts to this type from the input type.
Source§impl<'r> LowerHex for AcceptChannelReader<'r>
impl<'r> LowerHex for AcceptChannelReader<'r>
Source§impl<'r> Reader<'r> for AcceptChannelReader<'r>
impl<'r> Reader<'r> for AcceptChannelReader<'r>
const NAME: &'static str = "AcceptChannelReader"
type Entity = AcceptChannel
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 AcceptChannelReader<'r>
Auto Trait Implementations§
impl<'r> Freeze for AcceptChannelReader<'r>
impl<'r> RefUnwindSafe for AcceptChannelReader<'r>
impl<'r> Send for AcceptChannelReader<'r>
impl<'r> Sync for AcceptChannelReader<'r>
impl<'r> Unpin for AcceptChannelReader<'r>
impl<'r> UnsafeUnpin for AcceptChannelReader<'r>
impl<'r> UnwindSafe for AcceptChannelReader<'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.