pub struct Handle {
pub status: Receiver<Status>,
pub control: Arc<Control>,
pub store: Store,
pub caches: Receiver<Vec<CacheVolume>>,
pub records: Receiver<Records>,
pub build_cache: Option<BuildCache>,
pub disk: Receiver<Option<u64>>,
pub actions: JobActions,
}Expand description
What the API needs from a running engine.
Fields§
§status: Receiver<Status>The latest status, replaced after every tick.
control: Arc<Control>Pause, resume and shutdown requests.
store: StoreThe job history.
caches: Receiver<Vec<CacheVolume>>Every cache volume of the config, with size 0: the API fills in the sizes it measured. Replaced when the config is.
records: Receiver<Records>The records of failed jobs, replaced whenever one is made or removed.
build_cache: Option<BuildCache>The shared build cache, for its size now.
disk: Receiver<Option<u64>>What the slots’ Docker Engines may keep together, in bytes, from the last measure (cache::docker_disk);
None before the first. Auto sizing adds no slot without it (ADR 0090).
actions: JobActionsThe owner’s job actions, sent through the engine’s GitHub client but never on its loop (ADR 0134).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Handle
impl !UnwindSafe for Handle
impl Forget for Handle
impl Freeze for Handle
impl Move for Handle
impl Send for Handle
impl Sync for Handle
impl Unpin for Handle
impl UnsafeUnpin for Handle
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