pub struct Adapter { /* private fields */ }
Expand description
An external executable that runs CI on request.
Implementations§
Source§impl Adapter
impl Adapter
pub fn new(bin: &Path) -> Self
pub fn with_environment(self, env: &HashMap<String, String>) -> Self
pub fn with_sensitive_environment( self, env: &HashMap<String, Sensitive>, ) -> Self
pub fn run( &self, trigger: &Request, run: &mut Run, db: &Db, run_notification: &NotificationSender, max_run_time: Duration, ) -> Result<(), AdapterError>
Trait Implementations§
impl Eq for Adapter
impl StructuralPartialEq for Adapter
Auto Trait Implementations§
impl Freeze for Adapter
impl RefUnwindSafe for Adapter
impl Send for Adapter
impl Sync for Adapter
impl Unpin for Adapter
impl UnwindSafe for Adapter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.