pub struct TuiOverlay {
pub settings: TuiSettings,
pub coverart_hidden_overwrite: Option<bool>,
pub cover_features: bool,
}
Expand description
The TUI Settings to use, with possible overwrite (like from CLI)
Fields§
§settings: TuiSettings
The saved TUI-Settings
Disable TUI images (like cover-art) from being displayed in the terminal
This option will not be saved to the config and prevent saving to the config value
(disables ueberzug, sixel, iterm, kitty image displaying)
cover_features: bool
Enable/Disable checking for cover support.
If false
, will treat as if no cover features are compiled-in.
Implementations§
Source§impl TuiOverlay
impl TuiOverlay
Get whether the coverart should be hidden or not, either the overwrite if present, otherwise the config itself
true => hidden
Sourcepub fn cover_features_enabled(&self) -> bool
pub fn cover_features_enabled(&self) -> bool
Get whether cover features should be enabled or not, regardless if they are compiled-in or not.
Trait Implementations§
Source§impl Clone for TuiOverlay
impl Clone for TuiOverlay
Source§fn clone(&self) -> TuiOverlay
fn clone(&self) -> TuiOverlay
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TuiOverlay
impl Debug for TuiOverlay
Source§impl Default for TuiOverlay
impl Default for TuiOverlay
Source§fn default() -> TuiOverlay
fn default() -> TuiOverlay
Returns the “default value” for a type. Read more
Source§impl PartialEq for TuiOverlay
impl PartialEq for TuiOverlay
impl StructuralPartialEq for TuiOverlay
Auto Trait Implementations§
impl Freeze for TuiOverlay
impl RefUnwindSafe for TuiOverlay
impl Send for TuiOverlay
impl Sync for TuiOverlay
impl Unpin for TuiOverlay
impl UnwindSafe for TuiOverlay
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
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>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.