pub struct Broker { /* private fields */ }
Expand description
A CI broker.
The broker gets repository change events from the local Radicle node, and executes the appropriate adapter to run CI on the repository.
Implementations§
Source§impl Broker
impl Broker
pub fn new( db_filename: &Path, max_run_time: Duration, ) -> Result<Self, BrokerError>
pub fn all_runs(&mut self) -> Result<Vec<Run>, BrokerError>
pub fn set_default_adapter(&mut self, adapter: &Adapter)
pub fn default_adapter(&self) -> Option<&Adapter>
pub fn set_repository_adapter(&mut self, rid: &RepoId, adapter: &Adapter)
pub fn adapter(&self, rid: &RepoId) -> Option<&Adapter>
pub fn execute_ci( &mut self, trigger: &Request, run_notification: &NotificationSender, ) -> Result<Run, BrokerError>
Auto Trait Implementations§
impl Freeze for Broker
impl !RefUnwindSafe for Broker
impl Send for Broker
impl !Sync for Broker
impl Unpin for Broker
impl !UnwindSafe for Broker
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