Struct ckb_types::packed::SendHeadersReader
source · [−]pub struct SendHeadersReader<'r>(_);Implementations
sourceimpl<'r> SendHeadersReader<'r>
impl<'r> SendHeadersReader<'r>
pub const FIELD_COUNT: usize
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 headers(&self) -> HeaderVecReader<'r>
Trait Implementations
sourceimpl<'r> Clone for SendHeadersReader<'r>
impl<'r> Clone for SendHeadersReader<'r>
sourcefn clone(&self) -> SendHeadersReader<'r>
fn clone(&self) -> SendHeadersReader<'r>
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<'r> Debug for SendHeadersReader<'r>
impl<'r> Debug for SendHeadersReader<'r>
sourceimpl<'r> Display for SendHeadersReader<'r>
impl<'r> Display for SendHeadersReader<'r>
sourceimpl<'r> From<SendHeadersReader<'r>> for SyncMessageUnionReader<'r>
impl<'r> From<SendHeadersReader<'r>> for SyncMessageUnionReader<'r>
sourcefn from(item: SendHeadersReader<'r>) -> Self
fn from(item: SendHeadersReader<'r>) -> Self
Converts to this type from the input type.
sourceimpl<'r> LowerHex for SendHeadersReader<'r>
impl<'r> LowerHex for SendHeadersReader<'r>
sourceimpl<'r> Reader<'r> for SendHeadersReader<'r>
impl<'r> Reader<'r> for SendHeadersReader<'r>
type Entity = SendHeaders
const NAME: &'static str
fn to_entity(&self) -> Self::Entity
fn new_unchecked(slice: &'r [u8]) -> Self
fn as_slice(&self) -> &'r [u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
fn verify(slice: &[u8], compatible: bool) -> VerificationResult<()>
fn from_slice(slice: &'r [u8]) -> Result<Self, VerificationError>
fn from_compatible_slice(slice: &'r [u8]) -> Result<Self, VerificationError>
impl<'r> Copy for SendHeadersReader<'r>
Auto Trait Implementations
impl<'r> RefUnwindSafe for SendHeadersReader<'r>
impl<'r> Send for SendHeadersReader<'r>
impl<'r> Sync for SendHeadersReader<'r>
impl<'r> Unpin for SendHeadersReader<'r>
impl<'r> UnwindSafe for SendHeadersReader<'r>
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<'r, R> FromSliceShouldBeOk<'r> for R where
R: Reader<'r>,
impl<'r, R> FromSliceShouldBeOk<'r> for R where
R: Reader<'r>,
sourcefn from_slice_should_be_ok(slice: &'r [u8]) -> R
fn from_slice_should_be_ok(slice: &'r [u8]) -> R
Unwraps the result of from_slice(..) with confidence and we assume that it’s impossible to fail.
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