pub(crate) struct UiFlags {
pub(crate) settings: Arc<Mutex<bool>>,
pub(crate) library: Arc<Mutex<bool>>,
pub(crate) quit: Arc<Mutex<bool>>,
pub(crate) pause: Arc<Mutex<bool>>,
pub(crate) sync_now: Arc<Mutex<bool>>,
}Expand description
Cross-thread UI requests: the tray task sets them and a GTK timer consumes them.
Arc<Mutex<bool>> is Send + Sync, so the flags can cross into the tray’s Tokio
task while the application handle itself stays on the GTK thread.
Fields§
§settings: Arc<Mutex<bool>>§library: Arc<Mutex<bool>>§quit: Arc<Mutex<bool>>§pause: Arc<Mutex<bool>>§sync_now: Arc<Mutex<bool>>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for UiFlags
impl !UnwindSafe for UiFlags
impl Freeze for UiFlags
impl Send for UiFlags
impl Sync for UiFlags
impl Unpin for UiFlags
impl UnsafeUnpin for UiFlags
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
§impl<T, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
impl<T, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
§fn default_with_context(_: Ctx) -> T
fn default_with_context(_: Ctx) -> T
Creates a default value with the given context.
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
Converts
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> ⓘ
Converts
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> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.