#[repr(C)]pub struct WireImmutableNodeAttributes { /* private fields */ }
Expand description
The wire type corresponding to ImmutableNodeAttributes
.
Implementations§
Source§impl WireImmutableNodeAttributes
impl WireImmutableNodeAttributes
pub fn protocols(&self) -> Option<&WireNodeProtocolKinds>
pub fn abilities(&self) -> Option<&WireOperations>
pub fn content_size(&self) -> Option<&WireU64>
pub fn storage_size(&self) -> Option<&WireU64>
pub fn link_count(&self) -> Option<&WireU64>
pub fn id(&self) -> Option<&WireU64>
pub fn change_time(&self) -> Option<&WireU64>
pub fn options(&self) -> Option<&WireVerificationOptions>
pub fn root_hash(&self) -> Option<&WireVector<u8>>
pub fn verity_enabled(&self) -> Option<&bool>
Trait Implementations§
Source§impl Debug for WireImmutableNodeAttributes
impl Debug for WireImmutableNodeAttributes
Source§impl<___D> Decode<___D> for WireImmutableNodeAttributeswhere
___D: Decoder + ?Sized,
impl<___D> Decode<___D> for WireImmutableNodeAttributeswhere
___D: Decoder + ?Sized,
Source§impl TakeFrom<WireImmutableNodeAttributes> for ImmutableNodeAttributes
impl TakeFrom<WireImmutableNodeAttributes> for ImmutableNodeAttributes
Source§fn take_from(from: &WireImmutableNodeAttributes) -> Self
fn take_from(from: &WireImmutableNodeAttributes) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreSource§impl TakeFrom<WireImmutableNodeAttributes> for ImmutableNodeAttributes
impl TakeFrom<WireImmutableNodeAttributes> for ImmutableNodeAttributes
Source§fn take_from(from: &WireImmutableNodeAttributes) -> Self
fn take_from(from: &WireImmutableNodeAttributes) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreSource§impl ZeroPadding for WireImmutableNodeAttributes
impl ZeroPadding for WireImmutableNodeAttributes
Source§fn zero_padding(out: &mut MaybeUninit<Self>)
fn zero_padding(out: &mut MaybeUninit<Self>)
Writes zeroes to the padding for this type, if any.
Auto Trait Implementations§
impl Freeze for WireImmutableNodeAttributes
impl RefUnwindSafe for WireImmutableNodeAttributes
impl !Send for WireImmutableNodeAttributes
impl !Sync for WireImmutableNodeAttributes
impl Unpin for WireImmutableNodeAttributes
impl UnwindSafe for WireImmutableNodeAttributes
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