pub struct SessionHandle {
pub session: Mutex<CdpSession>,
pub outbox: Mutex<VecDeque<OutboxEvent>>,
}Expand description
Shared session handle: the session itself plus its outbound event queue.
The outbox exists so the EventBroadcaster can queue events for a session whose mutex is currently held by the server loop (a command dispatch emitting events for its own session) without self-deadlocking.
Fields§
§session: Mutex<CdpSession>§outbox: Mutex<VecDeque<OutboxEvent>>Implementations§
Source§impl SessionHandle
impl SessionHandle
pub fn new(session: CdpSession) -> Arc<Self> ⓘ
Auto Trait Implementations§
impl !Freeze for SessionHandle
impl RefUnwindSafe for SessionHandle
impl Send for SessionHandle
impl Sync for SessionHandle
impl Unpin for SessionHandle
impl UnsafeUnpin for SessionHandle
impl UnwindSafe for SessionHandle
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