pub struct JobActions { /* private fields */ }Expand description
Sends the owner’s job actions. Cloned into each request; every clone shares the confirmations and flights.
Implementations§
Source§impl JobActions
impl JobActions
Sourcepub fn new(
github: Arc<dyn ActionsGithub>,
store: Store,
control: Arc<Control>,
limits: Limits,
) -> JobActions
pub fn new( github: Arc<dyn ActionsGithub>, store: Store, control: Arc<Control>, limits: Limits, ) -> JobActions
Actions sent through github, for the jobs store has, under the config control holds, within limits
(LIMITS but in tests).
Sourcepub async fn ask(
&self,
job: u64,
action: JobAction,
confirm: Option<&str>,
) -> Result<Asked, ActionError>
pub async fn ask( &self, job: u64, action: JobAction, confirm: Option<&str>, ) -> Result<Asked, ActionError>
Asks action of job job. Unless confirm is a confirmation this daemon issued with a preview of this very
action and job, still current, the answer is a new preview and nothing is sent. A confirmed one is sent once,
or joins the same one in flight for the run; another action in flight for the run refuses it.
Trait Implementations§
Source§impl Clone for JobActions
impl Clone for JobActions
Auto Trait Implementations§
impl !RefUnwindSafe for JobActions
impl !UnwindSafe for JobActions
impl Forget for JobActions
impl Freeze for JobActions
impl Move for JobActions
impl Send for JobActions
impl Sync for JobActions
impl Unpin for JobActions
impl UnsafeUnpin for JobActions
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