pub trait BridgeDebugHandle: Send + Sync {
// Required methods
fn fire_close(&self, code: u16);
fn force_reconnect(&self);
fn inject_fault(&self, fault: BridgeFault);
fn wake_poll_loop(&self);
fn describe(&self) -> String;
}Expand description
Debug handle for bridge operations
Required Methods§
Sourcefn fire_close(&self, code: u16)
fn fire_close(&self, code: u16)
Invoke the transport’s permanent-close handler directly.
Sourcefn force_reconnect(&self)
fn force_reconnect(&self)
Call reconnectEnvironmentWithSession
Sourcefn inject_fault(&self, fault: BridgeFault)
fn inject_fault(&self, fault: BridgeFault)
Queue a fault for the next N calls to the named api method.
Sourcefn wake_poll_loop(&self)
fn wake_poll_loop(&self)
Abort the at-capacity sleep so an injected poll fault lands immediately.