Struct astro_run_server::AstroRunRunner
source · pub struct AstroRunRunner { /* private fields */ }
Implementations§
source§impl AstroRunRunner
impl AstroRunRunner
sourcepub fn builder() -> AstroRunRunnerBuilder
pub fn builder() -> AstroRunRunnerBuilder
Examples found in repository?
examples/client.rs (line 28)
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 async fn start(&mut self) -> Result<()>
pub async fn start(&mut self) -> Result<()>
Examples found in repository?
examples/client.rs (line 36)
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 register_plugin(&self, plugin: AstroRunPlugin)
pub fn unregister_plugin(&self, plugin: &'static str)
Auto Trait Implementations§
impl !RefUnwindSafe for AstroRunRunner
impl Send for AstroRunRunner
impl Sync for AstroRunRunner
impl Unpin for AstroRunRunner
impl !UnwindSafe for AstroRunRunner
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