pub struct Settings(ThreadGuard<Settings>);

Tuple Fields§

§0: ThreadGuard<Settings>

Implementations§

source§

impl Settings

source

const KEY_KEYRINGS_MIGRATED: &'static str = "keyrings-migrated"

source

const KEY_AUTO_LOCK: &'static str = "auto-lock"

source

const KEY_AUTO_LOCK_TIMEOUT: &'static str = "auto-lock-timeout"

source

const KEY_WINDOW_WIDTH: &'static str = "window-width"

source

const KEY_WINDOW_HEIGHT: &'static str = "window-height"

source

const KEY_IS_MAXIMIZED: &'static str = "is-maximized"

source

const KEY_DOWNLOAD_FAVICONS: &'static str = "download-favicons"

source

const KEY_DOWNLOAD_FAVICONS_METRED: &'static str = "download-favicons-metered"

source

pub fn set_keyrings_migrated( &self, keyrings_migrated: bool ) -> Result<(), BoolError>

source

pub fn keyrings_migrated(&self) -> bool

source

pub fn auto_lock(&self) -> bool

source

pub fn connect_auto_lock_changed<F>(&self, callback: F) -> SignalHandlerId
where F: Fn(bool) + 'static,

source

pub fn bind_auto_lock<'a>( &'a self, target: &'a impl IsA<Object>, target_property: &'a str ) -> BindingBuilder<'a>

source

pub fn auto_lock_timeout(&self) -> u32

source

pub fn connect_auto_lock_timeout_changed<F>( &self, callback: F ) -> SignalHandlerId
where F: Fn(u32) + 'static,

source

pub fn bind_auto_lock_timeout<'a>( &'a self, target: &'a impl IsA<Object>, target_property: &'a str ) -> BindingBuilder<'a>

source

pub fn set_window_height(&self, window_height: i32) -> Result<(), BoolError>

source

pub fn window_height(&self) -> i32

source

pub fn set_window_width(&self, window_width: i32) -> Result<(), BoolError>

source

pub fn window_width(&self) -> i32

source

pub fn is_maximized(&self) -> bool

source

pub fn set_is_maximized(&self, is_maximized: bool) -> Result<(), BoolError>

source

pub fn download_favicons(&self) -> bool

source

pub fn bind_download_favicons<'a>( &'a self, target: &'a impl IsA<Object>, target_property: &'a str ) -> BindingBuilder<'a>

source

pub fn connect_download_favicons_changed<F>( &self, callback: F ) -> SignalHandlerId
where F: Fn(bool) + 'static,

source

pub fn download_favicons_metered(&self) -> bool

source

pub fn bind_download_favicons_metred<'a>( &'a self, target: &'a impl IsA<Object>, target_property: &'a str ) -> BindingBuilder<'a>

source

pub fn connect_download_favicons_metered_changed<F>( &self, callback: F ) -> SignalHandlerId
where F: Fn(bool) + 'static,

Methods from Deref<Target = Settings>§

pub const NONE: Option<&'static Settings> = None

Trait Implementations§

source§

impl Default for Settings

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Deref for Settings

§

type Target = Settings

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Send for Settings

source§

impl Sync for Settings

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> IntoSql for T

§

fn into_sql<T>(self) -> Self::Expression
where Self: AsExpression<T> + Sized, T: SqlType + TypedExpressionType,

Convert self to an expression for Diesel’s query builder. Read more
§

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
where &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,

Convert &self to an expression for Diesel’s query builder. Read more
§

impl<T> NoneValue for T
where T: Default,

§

type NoneType = T

§

fn null_value() -> T

The none-equivalent value.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more