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