pub struct DiscoveryKey {
pub target: Address,
pub kind: DiscoveryKind,
pub source_block: Option<Address>,
}Expand description
Stable identity of a discovery item.
Fields§
§target: Address§kind: DiscoveryKind§source_block: Option<Address>Source block for edge-bearing discoveries. Two transfers to the same target are distinct work items because the lifter must attach both source edges after the target exists.
Trait Implementations§
Source§impl Clone for DiscoveryKey
impl Clone for DiscoveryKey
Source§fn clone(&self) -> DiscoveryKey
fn clone(&self) -> DiscoveryKey
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 DiscoveryKey
impl Debug for DiscoveryKey
Source§impl<'de> Deserialize<'de> for DiscoveryKey
impl<'de> Deserialize<'de> for DiscoveryKey
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
impl Eq for DiscoveryKey
Source§impl Hash for DiscoveryKey
impl Hash for DiscoveryKey
Source§impl Ord for DiscoveryKey
impl Ord for DiscoveryKey
Source§fn cmp(&self, other: &DiscoveryKey) -> Ordering
fn cmp(&self, other: &DiscoveryKey) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DiscoveryKey
impl PartialEq for DiscoveryKey
Source§impl PartialOrd for DiscoveryKey
impl PartialOrd for DiscoveryKey
Source§impl Serialize for DiscoveryKey
impl Serialize for DiscoveryKey
impl StructuralPartialEq for DiscoveryKey
Auto Trait Implementations§
impl Freeze for DiscoveryKey
impl RefUnwindSafe for DiscoveryKey
impl Send for DiscoveryKey
impl Sync for DiscoveryKey
impl Unpin for DiscoveryKey
impl UnsafeUnpin for DiscoveryKey
impl UnwindSafe for DiscoveryKey
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