pub struct SegmentRef {
pub segment_hash: [u8; 32],
pub segment_id: u64,
}Expand description
A reference to a segment on a remote peer, identified by content hash and local segment ID.
Fields§
§segment_hash: [u8; 32]BLAKE3 content hash of the segment (32 bytes).
segment_id: u64Peer’s local segment ID for correlation.
Implementations§
Trait Implementations§
Source§impl Clone for SegmentRef
impl Clone for SegmentRef
Source§fn clone(&self) -> SegmentRef
fn clone(&self) -> SegmentRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SegmentRef
impl Debug for SegmentRef
Source§impl<'de> Deserialize<'de> for SegmentRef
impl<'de> Deserialize<'de> for SegmentRef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SegmentRef
impl RefUnwindSafe for SegmentRef
impl Send for SegmentRef
impl Sync for SegmentRef
impl Unpin for SegmentRef
impl UnsafeUnpin for SegmentRef
impl UnwindSafe for SegmentRef
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