pub struct DhtSegmentState {
pub disc_top_hash: Bytes,
pub disc_boundary: Timestamp,
pub ring_top_hashes: Vec<Bytes>,
}Expand description
DHT segment state.
Fields§
§disc_top_hash: BytesThe top hash of the DHT ring segment.
disc_boundary: TimestampThe boundary timestamp of the DHT ring segment.
ring_top_hashes: Vec<Bytes>The top hashes of each DHT ring segment.
Trait Implementations§
Source§impl Clone for DhtSegmentState
impl Clone for DhtSegmentState
Source§fn clone(&self) -> DhtSegmentState
fn clone(&self) -> DhtSegmentState
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 DhtSegmentState
impl Debug for DhtSegmentState
Source§impl<'de> Deserialize<'de> for DhtSegmentState
impl<'de> Deserialize<'de> for DhtSegmentState
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 DhtSegmentState
impl RefUnwindSafe for DhtSegmentState
impl Send for DhtSegmentState
impl Sync for DhtSegmentState
impl Unpin for DhtSegmentState
impl UnwindSafe for DhtSegmentState
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