pub struct BridgeProcess { /* private fields */ }Implementations§
Source§impl BridgeProcess
impl BridgeProcess
pub fn grpc_port(&self) -> u16
Sourcepub async fn connect(&self) -> Result<Channel, BridgeError>
pub async fn connect(&self) -> Result<Channel, BridgeError>
Connect a mTLS tonic channel to this bridge process.
Sourcepub async fn start_and_connect(
config: &BridgeProcessConfig,
) -> Result<(Self, Channel), BridgeError>
pub async fn start_and_connect( config: &BridgeProcessConfig, ) -> Result<(Self, Channel), BridgeError>
Start the bridge process and connect a mTLS channel in one step.
Sourcepub async fn start(config: &BridgeProcessConfig) -> Result<Self, BridgeError>
pub async fn start(config: &BridgeProcessConfig) -> Result<Self, BridgeError>
Spawn the bridge process. Reads the SSL port from stdout JSON line: {“status”:“ready”,“port”:PORT}
Picks a free OS port and passes it to the bridge via QUARKUS_HTTP_SSL_PORT
so Quarkus binds exactly to that port and PortAnnouncer can echo it back.
Build-time TLS props are in application.yml; only runtime cert paths
and the SSL port are passed via env vars.
Sourcepub async fn stop(self) -> Result<(), BridgeError>
pub async fn stop(self) -> Result<(), BridgeError>
Gracefully stop: SIGTERM + wait for exit.
Trait Implementations§
Source§impl Drop for BridgeProcess
impl Drop for BridgeProcess
Auto Trait Implementations§
impl !RefUnwindSafe for BridgeProcess
impl !UnwindSafe for BridgeProcess
impl Freeze for BridgeProcess
impl Send for BridgeProcess
impl Sync for BridgeProcess
impl Unpin for BridgeProcess
impl UnsafeUnpin for BridgeProcess
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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