pub enum SwitchStep {
StopPlayback,
ParkSyncQueue {
user_id: String,
},
StopSessionPoller,
ClearLockscreenMetadata,
DestroyRepository,
SetActiveUser {
user_id: String,
},
BuildRepository {
user_id: String,
},
StartSessionPoller,
RefreshVisibility {
user_id: String,
},
EmitSwitched {
user_id: String,
},
}Expand description
One executable step of a switch.
TRACES: UR-082 | DR-270
Variants§
StopPlayback
Stop playback and drop the queue. The queue cannot outlive its owner.
ParkSyncQueue
Flush what the outgoing profile changed while offline, so it is not replayed under the incoming profile’s token.
StopSessionPoller
ClearLockscreenMetadata
Clear OS media metadata so the lockscreen does not show the outgoing profile’s episode to whoever just took over the device.
DestroyRepository
SetActiveUser
The point of no return: after this, writes land under the new profile.
BuildRepository
StartSessionPoller
RefreshVisibility
Re-derive what the server currently lets this profile see. Only possible online; offline the cached view stays as it was, which is stale-permissive by design.
EmitSwitched
Trait Implementations§
Source§impl Clone for SwitchStep
impl Clone for SwitchStep
Source§fn clone(&self) -> SwitchStep
fn clone(&self) -> SwitchStep
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SwitchStep
impl Debug for SwitchStep
Source§impl PartialEq for SwitchStep
impl PartialEq for SwitchStep
Source§fn eq(&self, other: &SwitchStep) -> bool
fn eq(&self, other: &SwitchStep) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SwitchStep
impl StructuralPartialEq for SwitchStep
Auto Trait Implementations§
impl Freeze for SwitchStep
impl RefUnwindSafe for SwitchStep
impl Send for SwitchStep
impl Sync for SwitchStep
impl Unpin for SwitchStep
impl UnsafeUnpin for SwitchStep
impl UnwindSafe for SwitchStep
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more