pub(super) struct StickyReplayState {
audio_publication_active: bool,
camera_publication_active: bool,
screen_publication_active: bool,
desired_subscriptions: BTreeMap<UserId, DownloadStates>,
desired_info: Option<UserInfo>,
}Expand description
Retains client intent across recoverable WebSocket replacement.
Authentication replays subscriptions and user info. Transport readiness replays active publications.
Fields§
§audio_publication_active: bool§camera_publication_active: bool§screen_publication_active: bool§desired_subscriptions: BTreeMap<UserId, DownloadStates>§desired_info: Option<UserInfo>Implementations§
Source§impl StickyReplayState
impl StickyReplayState
pub(super) fn new() -> Self
pub(super) fn clear(&mut self)
pub(super) fn set_publish_active( &mut self, stream_type: StreamType, active: bool, )
pub(super) fn active_publications( &self, ) -> impl Iterator<Item = StreamType> + '_
pub(super) fn remember_subscription_states( &mut self, user_id: &UserId, states: &DownloadStates, )
pub(super) fn remember_info(&mut self, info: &UserInfo)
pub(super) fn replay_session_batch(&self) -> Option<EnvelopeBatch>
Trait Implementations§
Source§impl Clone for StickyReplayState
impl Clone for StickyReplayState
Source§fn clone(&self) -> StickyReplayState
fn clone(&self) -> StickyReplayState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StickyReplayState
impl Debug for StickyReplayState
Source§impl Default for StickyReplayState
impl Default for StickyReplayState
Source§fn default() -> StickyReplayState
fn default() -> StickyReplayState
Returns the “default value” for a type. Read more
Source§impl PartialEq for StickyReplayState
impl PartialEq for StickyReplayState
impl Eq for StickyReplayState
impl StructuralPartialEq for StickyReplayState
Auto Trait Implementations§
impl Freeze for StickyReplayState
impl RefUnwindSafe for StickyReplayState
impl Send for StickyReplayState
impl Sync for StickyReplayState
impl Unpin for StickyReplayState
impl UnsafeUnpin for StickyReplayState
impl UnwindSafe for StickyReplayState
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