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
const NAME: &'static str = "LightClientMessage"
type Builder = LightClientMessageBuilder
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 !Freeze for LightClientMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)