pub struct BridgeProcess { /* private fields */ }Implementations§
Source§impl BridgeProcess
impl BridgeProcess
pub fn grpc_port(&self) -> u16
Sourcepub async fn start(config: &BridgeProcessConfig) -> Result<Self, BridgeError>
pub async fn start(config: &BridgeProcessConfig) -> Result<Self, BridgeError>
Spawn the bridge process. Reads the gRPC port from stdout JSON line: {“status”:“ready”,“port”:PORT}
Picks a free OS port and passes it to the bridge via QUARKUS_GRPC_SERVER_PORT
so Quarkus binds exactly to that port and PortAnnouncer can echo it back.
Sourcepub async fn stop(self) -> Result<(), BridgeError>
pub async fn stop(self) -> Result<(), BridgeError>
Gracefully stop: SIGTERM + wait for exit.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BridgeProcess
impl !RefUnwindSafe for BridgeProcess
impl Send for BridgeProcess
impl Sync for BridgeProcess
impl Unpin for BridgeProcess
impl UnsafeUnpin for BridgeProcess
impl !UnwindSafe for BridgeProcess
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