pub struct DiscoveryContext {
pub key_pair: KeyPair,
pub peer_id: PeerID,
pub config: ConfigRef,
pub monitor: MonitorRef,
pub executor: Executor,
}Expand description
What a discovery gets from the node that runs it. Passed to the
constructor given to Node::with_discovery.
Fields§
§key_pair: KeyPair§peer_id: PeerID§config: ConfigRef§monitor: MonitorRef§executor: ExecutorAuto Trait Implementations§
impl !RefUnwindSafe for DiscoveryContext
impl !UnwindSafe for DiscoveryContext
impl Freeze for DiscoveryContext
impl Send for DiscoveryContext
impl Sync for DiscoveryContext
impl Unpin for DiscoveryContext
impl UnsafeUnpin for DiscoveryContext
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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