pub struct Backend { /* private fields */ }Expand description
A local execution backend.
Implementations§
Source§impl Backend
impl Backend
Sourcepub async fn initialize_default_with(
config: Config,
names: Arc<Mutex<GeneratorIterator<UniqueAlphanumeric>>>,
events: Option<Sender<Event>>,
) -> Result<Self>
pub async fn initialize_default_with( config: Config, names: Arc<Mutex<GeneratorIterator<UniqueAlphanumeric>>>, events: Option<Sender<Event>>, ) -> Result<Self>
Attempts to initialize a new Docker Backend with the default
connection settings and the provided configuration for the backend.
Note that, currently, we connect using defaults when attempting to connect to the Docker daemon.
Sourcepub async fn initialize_default(
names: Arc<Mutex<GeneratorIterator<UniqueAlphanumeric>>>,
events: Option<Sender<Event>>,
) -> Result<Self>
pub async fn initialize_default( names: Arc<Mutex<GeneratorIterator<UniqueAlphanumeric>>>, events: Option<Sender<Event>>, ) -> Result<Self>
Attempts to initialize a new Docker Backend with the default
connection settings and default backend configuration.
Note that, currently, we connect using defaults when attempting to connect to the Docker daemon.
Trait Implementations§
Source§impl Backend for Backend
impl Backend for Backend
Source§fn default_name(&self) -> &'static str
fn default_name(&self) -> &'static str
Gets the default name for the backend.
Source§fn run(
&self,
task: Task,
token: CancellationToken,
) -> Result<BoxFuture<'static, Result<NonEmpty<ExitStatus>, TaskRunError>>>
fn run( &self, task: Task, token: CancellationToken, ) -> Result<BoxFuture<'static, Result<NonEmpty<ExitStatus>, TaskRunError>>>
Runs a task in a backend. Read more
Auto Trait Implementations§
impl Freeze for Backend
impl !RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl !UnwindSafe for Backend
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