pub struct EnvLessBridgeHandle {
pub session_id: RwLock<String>,
pub environment_id: RwLock<String>,
pub session_ingress_url: RwLock<String>,
pub transport: RwLock<Option<Box<dyn ReplBridgeTransport>>>,
pub credentials: RwLock<Option<RemoteCredentials>>,
pub torn_down: RwLock<bool>,
pub auth_recovery_in_flight: RwLock<bool>,
/* private fields */
}Expand description
Handle for the env-less bridge.
Fields§
§session_id: RwLock<String>The bridge session ID (cse_* form).
environment_id: RwLock<String>The environment ID (empty for env-less).
session_ingress_url: RwLock<String>The session ingress URL.
transport: RwLock<Option<Box<dyn ReplBridgeTransport>>>The transport.
credentials: RwLock<Option<RemoteCredentials>>Current credentials (for refresh).
torn_down: RwLock<bool>Teardown flag.
auth_recovery_in_flight: RwLock<bool>Auth recovery in flight flag.
Implementations§
Source§impl EnvLessBridgeHandle
impl EnvLessBridgeHandle
Sourcepub fn new(
session_id: String,
environment_id: String,
session_ingress_url: String,
params: EnvLessBridgeParams,
) -> Self
pub fn new( session_id: String, environment_id: String, session_ingress_url: String, params: EnvLessBridgeParams, ) -> Self
Create a new env-less bridge handle.
Sourcepub async fn write_messages(&self, messages: Vec<SDKMessage>)
pub async fn write_messages(&self, messages: Vec<SDKMessage>)
Write messages to the bridge.
Sourcepub async fn write_sdk_messages(&self, messages: Vec<SDKMessage>)
pub async fn write_sdk_messages(&self, messages: Vec<SDKMessage>)
Write SDK messages directly.
Sourcepub async fn send_control_request(&self, request: BridgeControlRequest)
pub async fn send_control_request(&self, request: BridgeControlRequest)
Send a control request.
Sourcepub async fn send_control_response(&self, response: BridgeControlResponse)
pub async fn send_control_response(&self, response: BridgeControlResponse)
Send a control response.
Sourcepub async fn send_control_cancel_request(&self, request_id: &str)
pub async fn send_control_cancel_request(&self, request_id: &str)
Send a control cancel request.
Sourcepub async fn send_result(&self)
pub async fn send_result(&self)
Send a result message.
Auto Trait Implementations§
impl !Freeze for EnvLessBridgeHandle
impl !RefUnwindSafe for EnvLessBridgeHandle
impl Send for EnvLessBridgeHandle
impl Sync for EnvLessBridgeHandle
impl Unpin for EnvLessBridgeHandle
impl UnsafeUnpin for EnvLessBridgeHandle
impl !UnwindSafe for EnvLessBridgeHandle
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