Struct ckb_types::packed::PingPayload
source · pub struct PingPayload(/* private fields */);
Implementations§
source§impl PingPayload
impl PingPayload
pub const ITEMS_COUNT: usize = 2usize
pub fn item_id(&self) -> u32
pub fn to_enum(&self) -> PingPayloadUnion
pub fn as_reader<'r>(&'r self) -> PingPayloadReader<'r>
Trait Implementations§
source§impl Clone for PingPayload
impl Clone for PingPayload
source§fn clone(&self) -> PingPayload
fn clone(&self) -> PingPayload
Returns a copy 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 PingPayload
impl Debug for PingPayload
source§impl Default for PingPayload
impl Default for PingPayload
source§fn default() -> PingPayload
fn default() -> PingPayload
Returns the “default value” for a type. Read more
source§impl Display for PingPayload
impl Display for PingPayload
source§impl Entity for PingPayload
impl Entity for PingPayload
type Builder = PingPayloadBuilder
const NAME: &'static str = "PingPayload"
fn new_unchecked(data: Bytes) -> PingPayload
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> Result<PingPayload, VerificationError>
fn from_compatible_slice(slice: &[u8]) -> Result<PingPayload, VerificationError>
fn new_builder() -> <PingPayload as Entity>::Builder
fn as_builder(self) -> <PingPayload as Entity>::Builder
Auto Trait Implementations§
impl RefUnwindSafe for PingPayload
impl Send for PingPayload
impl Sync for PingPayload
impl Unpin for PingPayload
impl UnwindSafe for PingPayload
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