Enum ckb_types::packed::PingPayloadUnion
source · [−]Variants
Ping(Ping)
Pong(Pong)
Implementations
sourceimpl PingPayloadUnion
impl PingPayloadUnion
pub const NAME: &'static str
pub fn as_bytes(&self) -> Bytes
pub fn as_slice(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
pub fn item_id(&self) -> Number
pub fn item_name(&self) -> &str
pub fn as_reader<'r>(&'r self) -> PingPayloadUnionReader<'r>
Trait Implementations
sourceimpl Clone for PingPayloadUnion
impl Clone for PingPayloadUnion
sourcefn clone(&self) -> PingPayloadUnion
fn clone(&self) -> PingPayloadUnion
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for PingPayloadUnion
impl Debug for PingPayloadUnion
sourceimpl Default for PingPayloadUnion
impl Default for PingPayloadUnion
sourceimpl Display for PingPayloadUnion
impl Display for PingPayloadUnion
sourceimpl From<Ping> for PingPayloadUnion
impl From<Ping> for PingPayloadUnion
Auto Trait Implementations
impl RefUnwindSafe for PingPayloadUnion
impl Send for PingPayloadUnion
impl Sync for PingPayloadUnion
impl Unpin for PingPayloadUnion
impl UnwindSafe for PingPayloadUnion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more