pub struct ProviderContext {
pub tx: ObservationSender,
pub stop: Arc<AtomicBool>,
pub beacon: Arc<Beacon>,
}Expand description
What a provider gets to work with: the channel to the manager, the shared stop flag, and the beacon it announces.
Fields§
§tx: ObservationSenderWhere observations go: a bounded queue whose overflow is counted.
stop: Arc<AtomicBool>Set once by the manager; every provider thread ends at its next bounded wait.
beacon: Arc<Beacon>What this node announces.
Auto Trait Implementations§
impl Freeze for ProviderContext
impl RefUnwindSafe for ProviderContext
impl Send for ProviderContext
impl Sync for ProviderContext
impl Unpin for ProviderContext
impl UnsafeUnpin for ProviderContext
impl UnwindSafe for ProviderContext
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