pub struct SessionBridge {
pub session_id: String,
pub active_surface: Mutex<String>,
pub pending_approvals: Mutex<Vec<GatewayResponse>>,
pub engine: Option<Arc<Engine>>,
}Fields§
§session_id: String§active_surface: Mutex<String>§pending_approvals: Mutex<Vec<GatewayResponse>>§engine: Option<Arc<Engine>>Implementations§
Source§impl SessionBridge
impl SessionBridge
pub fn new() -> Self
pub async fn set_surface(&self, surface: &str)
pub async fn add_approval(&self, response: GatewayResponse)
pub async fn drain_approvals(&self) -> Vec<GatewayResponse>
Auto Trait Implementations§
impl !Freeze for SessionBridge
impl !RefUnwindSafe for SessionBridge
impl !UnwindSafe for SessionBridge
impl Send for SessionBridge
impl Sync for SessionBridge
impl Unpin for SessionBridge
impl UnsafeUnpin for SessionBridge
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more