pub struct ResourceRegistration {
pub id: NodeId,
pub len: u64,
pub preexisting: bool,
}Expand description
The outcome of registering one shared resource blob.
Fields§
§id: NodeIdThe resource’s content id.
len: u64Bytes held by the blob.
preexisting: boolWhether the id already existed in the store: a representation fact —
true means the bytes were already present and nothing new was written.
This is the nodes_id_shared witness; it is not a work-reuse witness.
Trait Implementations§
Source§impl Clone for ResourceRegistration
impl Clone for ResourceRegistration
impl Copy for ResourceRegistration
Source§impl Debug for ResourceRegistration
impl Debug for ResourceRegistration
impl Eq for ResourceRegistration
Source§impl PartialEq for ResourceRegistration
impl PartialEq for ResourceRegistration
impl StructuralPartialEq for ResourceRegistration
Auto Trait Implementations§
impl Freeze for ResourceRegistration
impl RefUnwindSafe for ResourceRegistration
impl Send for ResourceRegistration
impl Sync for ResourceRegistration
impl Unpin for ResourceRegistration
impl UnsafeUnpin for ResourceRegistration
impl UnwindSafe for ResourceRegistration
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