Struct ckb_types::packed::BlockFilters
source · pub struct BlockFilters(/* private fields */);
Implementations§
source§impl BlockFilters
impl BlockFilters
pub const FIELD_COUNT: usize = 3usize
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 start_number(&self) -> Uint64
pub fn block_hashes(&self) -> Byte32Vec
pub fn filters(&self) -> BytesVec
pub fn as_reader<'r>(&'r self) -> BlockFiltersReader<'r>
Trait Implementations§
source§impl Clone for BlockFilters
impl Clone for BlockFilters
source§fn clone(&self) -> BlockFilters
fn clone(&self) -> BlockFilters
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 BlockFilters
impl Debug for BlockFilters
source§impl Default for BlockFilters
impl Default for BlockFilters
source§fn default() -> BlockFilters
fn default() -> BlockFilters
Returns the “default value” for a type. Read more
source§impl Display for BlockFilters
impl Display for BlockFilters
source§impl Entity for BlockFilters
impl Entity for BlockFilters
type Builder = BlockFiltersBuilder
const NAME: &'static str = "BlockFilters"
fn new_unchecked(data: Bytes) -> BlockFilters
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> Result<BlockFilters, VerificationError>
fn from_compatible_slice( slice: &[u8] ) -> Result<BlockFilters, VerificationError>
fn new_builder() -> <BlockFilters as Entity>::Builder
fn as_builder(self) -> <BlockFilters as Entity>::Builder
source§impl From<BlockFilters> for BlockFilterMessageUnion
impl From<BlockFilters> for BlockFilterMessageUnion
source§fn from(item: BlockFilters) -> BlockFilterMessageUnion
fn from(item: BlockFilters) -> BlockFilterMessageUnion
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for BlockFilters
impl Send for BlockFilters
impl Sync for BlockFilters
impl Unpin for BlockFilters
impl UnwindSafe for BlockFilters
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