pub struct PolicyPullHandle {
pub current: Receiver<Arc<Engine>>,
pub killswitch: Receiver<bool>,
pub version: Arc<Mutex<u64>>,
pub _task: JoinHandle<()>,
}Expand description
Handle returned to main(). Holds the receiver side of the watch
channel + the running task. Dropping it cancels the task.
Fields§
§current: Receiver<Arc<Engine>>§killswitch: Receiver<bool>§version: Arc<Mutex<u64>>Latest version we’ve seen from the server, exposed for the status / metrics path.
_task: JoinHandle<()>Auto Trait Implementations§
impl !RefUnwindSafe for PolicyPullHandle
impl !UnwindSafe for PolicyPullHandle
impl Freeze for PolicyPullHandle
impl Send for PolicyPullHandle
impl Sync for PolicyPullHandle
impl Unpin for PolicyPullHandle
impl UnsafeUnpin for PolicyPullHandle
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