pub enum BubbleVisibility {
Hidden,
Visible,
}Expand description
Whether the webcam-bubble window is currently shown to the user.
The state lives in tauri::Manager-managed storage; this enum is
the source of truth for the “Show webcam bubble” toggle button in
the Recorder surface. Default is Hidden (matching
tauri.conf.json’s visible: false).
Variants§
Hidden
Bubble window is hidden; next toggle shows it.
Visible
Bubble window is visible; next toggle hides it.
Implementations§
Source§impl BubbleVisibility
impl BubbleVisibility
Sourcepub fn on_click(&mut self) -> BubbleAction
pub fn on_click(&mut self) -> BubbleAction
Advance the state machine by one click; return the action the caller must perform.
Sourcepub fn set(&mut self, visible: bool) -> Option<BubbleAction>
pub fn set(&mut self, visible: bool) -> Option<BubbleAction>
Align the state to visible, returning the action the caller
should perform — or None when already in the requested state.
Distinct from Self::on_click (which always flips). Used by
callers that own their own source of truth for the desired
visibility (e.g. the recorder’s camera_enabled signal) and
need lockstep alignment without depending on the state
machine’s prior position. ISS-05.
Trait Implementations§
Source§impl Clone for BubbleVisibility
impl Clone for BubbleVisibility
Source§fn clone(&self) -> BubbleVisibility
fn clone(&self) -> BubbleVisibility
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BubbleVisibility
impl Debug for BubbleVisibility
Source§impl Default for BubbleVisibility
impl Default for BubbleVisibility
Source§fn default() -> BubbleVisibility
fn default() -> BubbleVisibility
Source§impl PartialEq for BubbleVisibility
impl PartialEq for BubbleVisibility
Source§fn eq(&self, other: &BubbleVisibility) -> bool
fn eq(&self, other: &BubbleVisibility) -> bool
self and other values to be equal, and is used by ==.impl Copy for BubbleVisibility
impl Eq for BubbleVisibility
impl StructuralPartialEq for BubbleVisibility
Auto Trait Implementations§
impl Freeze for BubbleVisibility
impl RefUnwindSafe for BubbleVisibility
impl Send for BubbleVisibility
impl Sync for BubbleVisibility
impl Unpin for BubbleVisibility
impl UnsafeUnpin for BubbleVisibility
impl UnwindSafe for BubbleVisibility
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
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
§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
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().