pub struct ExtensionWebSession {
pub web: WebRoom,
pub chat: ChatRoom,
pub web_self: Presence,
pub chat_self: Presence,
pub code: String,
/* private fields */
}Expand description
A paired live session: one WebRoom (live page DOM) + one ChatRoom.
Share links carry only the web access code; chat uses ensure + Parrot code.
Fields§
§web: WebRoom§chat: ChatRoom§web_self: Presence§chat_self: Presence§code: StringBare web access code used in the share URL.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for ExtensionWebSession
impl Freeze for ExtensionWebSessionwhere
*const ArcInner<RoomInner> is !null: Freeze,
PhantomData<ArcInner<RoomInner>>: Freeze,
*const ArcInner<Mutex<WebState>> is !null: Freeze,
PhantomData<ArcInner<Mutex<WebState>>>: Freeze,
*const ArcInner<ChatState> is !null: Freeze,
PhantomData<ArcInner<ChatState>>: Freeze,
*const ArcInner<PresenceInner> is !null: Freeze,
PhantomData<ArcInner<PresenceInner>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Platform>: Freeze,
PhantomData<ApiKey>: Freeze,
impl Move for ExtensionWebSession
impl RefUnwindSafe for ExtensionWebSessionwhere
Atomic<usize>: RefUnwindSafe,
Chan<Message, Semaphore>: RefUnwindSafe,
Mutex<Vec<Presence>>: RefUnwindSafe,
RwLock<bool>: RefUnwindSafe,
AtomicUsize: RefUnwindSafe,
Notify: RefUnwindSafe,
Atomic<bool>: RefUnwindSafe,
Mutex<WebState>: RefUnwindSafe,
Mutex<Chat>: RefUnwindSafe,
Mutex<Arc<dyn RoomHooks>>: RefUnwindSafe,
Mutex<Vec<Tool>>: RefUnwindSafe,
Mutex<HashSet<String>>: RefUnwindSafe,
Mutex<Vec<RoomToolCall>>: RefUnwindSafe,
Mutex<Vec<(u64, Arc<dyn Fn(Option<u64>) + Sync + Send>)>>: RefUnwindSafe,
Atomic<u64>: RefUnwindSafe,
Mutex<Option<Presence>>: RefUnwindSafe,
Mutex<String>: RefUnwindSafe,
Mutex<PresenceState>: RefUnwindSafe,
impl Send for ExtensionWebSession
impl Sync for ExtensionWebSession
impl Unpin for ExtensionWebSession
impl UnsafeUnpin for ExtensionWebSessionwhere
*const ArcInner<RoomInner> is !null: UnsafeUnpin,
PhantomData<ArcInner<RoomInner>>: UnsafeUnpin,
*const ArcInner<Mutex<WebState>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<WebState>>>: UnsafeUnpin,
*const ArcInner<ChatState> is !null: UnsafeUnpin,
PhantomData<ArcInner<ChatState>>: UnsafeUnpin,
*const ArcInner<PresenceInner> is !null: UnsafeUnpin,
PhantomData<ArcInner<PresenceInner>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Platform>: UnsafeUnpin,
PhantomData<ApiKey>: UnsafeUnpin,
impl UnwindSafe for ExtensionWebSessionwhere
Arc<RoomInner>: UnwindSafe,
Arc<Mutex<WebState>>: UnwindSafe,
Arc<ChatState>: UnwindSafe,
Arc<PresenceInner>: UnwindSafe,
RawVecInner: UnwindSafe,
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