Struct astro_run_server::AstroRunRunnerBuilder
source · pub struct AstroRunRunnerBuilder { /* private fields */ }Implementations§
source§impl AstroRunRunnerBuilder
impl AstroRunRunnerBuilder
pub fn new() -> Self
sourcepub fn runner<T>(self, runner: T) -> Selfwhere
T: Runner + 'static,
pub fn runner<T>(self, runner: T) -> Selfwhere
T: Runner + 'static,
Examples found in repository?
examples/client.rs (line 29)
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
async fn main() -> Result<()> {
let runner = Runner::new();
let mut astro_run_runner = AstroRunRunner::builder()
.runner(runner)
.url("http://127.0.0.1:5338")
.id("test-runner")
.build()
.await
.unwrap();
astro_run_runner.start().await.unwrap();
Ok(())
}sourcepub fn id(self, id: impl Into<String>) -> Self
pub fn id(self, id: impl Into<String>) -> Self
Examples found in repository?
examples/client.rs (line 31)
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
async fn main() -> Result<()> {
let runner = Runner::new();
let mut astro_run_runner = AstroRunRunner::builder()
.runner(runner)
.url("http://127.0.0.1:5338")
.id("test-runner")
.build()
.await
.unwrap();
astro_run_runner.start().await.unwrap();
Ok(())
}sourcepub fn url(self, url: impl Into<String>) -> Self
pub fn url(self, url: impl Into<String>) -> Self
Examples found in repository?
examples/client.rs (line 30)
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
async fn main() -> Result<()> {
let runner = Runner::new();
let mut astro_run_runner = AstroRunRunner::builder()
.runner(runner)
.url("http://127.0.0.1:5338")
.id("test-runner")
.build()
.await
.unwrap();
astro_run_runner.start().await.unwrap();
Ok(())
}pub fn max_runs(self, max_runs: i32) -> Self
pub fn support_docker(self, support_docker: bool) -> Self
pub fn support_host(self, support_host: bool) -> Self
pub fn plugin<P>(self, plugin: P) -> Selfwhere
P: Plugin + 'static,
sourcepub async fn build(self) -> Result<AstroRunRunner>
pub async fn build(self) -> Result<AstroRunRunner>
Examples found in repository?
examples/client.rs (line 32)
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
async fn main() -> Result<()> {
let runner = Runner::new();
let mut astro_run_runner = AstroRunRunner::builder()
.runner(runner)
.url("http://127.0.0.1:5338")
.id("test-runner")
.build()
.await
.unwrap();
astro_run_runner.start().await.unwrap();
Ok(())
}Auto Trait Implementations§
impl !RefUnwindSafe for AstroRunRunnerBuilder
impl Send for AstroRunRunnerBuilder
impl Sync for AstroRunRunnerBuilder
impl Unpin for AstroRunRunnerBuilder
impl !UnwindSafe for AstroRunRunnerBuilder
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request