pub struct CNodeSlotEntry {
pub slot: SlotIdx,
pub target: CapHashOrRef,
}Expand description
One populated slot — retained as a serialisation helper for callers
that need a flat (slot, target) pair (e.g., CacheDirectory::publish_cnode).
The on-the-wire/hash representation of CNodeCap no longer uses this
type; the cnode is encoded directly as a SparseList<CapHashOrRef, ...>.
Fields§
§slot: SlotIdx§target: CapHashOrRefTrait Implementations§
Source§impl Clone for CNodeSlotEntry
impl Clone for CNodeSlotEntry
Source§fn clone(&self) -> CNodeSlotEntry
fn clone(&self) -> CNodeSlotEntry
Returns a duplicate 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 CNodeSlotEntry
impl Debug for CNodeSlotEntry
Source§impl PartialEq for CNodeSlotEntry
impl PartialEq for CNodeSlotEntry
impl Eq for CNodeSlotEntry
impl StructuralPartialEq for CNodeSlotEntry
Auto Trait Implementations§
impl Freeze for CNodeSlotEntry
impl RefUnwindSafe for CNodeSlotEntry
impl Send for CNodeSlotEntry
impl Sync for CNodeSlotEntry
impl Unpin for CNodeSlotEntry
impl UnsafeUnpin for CNodeSlotEntry
impl UnwindSafe for CNodeSlotEntry
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.