pub struct Provider {
Show 14 fields pub id: Cell<u32>, pub name: RefCell<String>, pub period: Cell<u32>, pub method: Cell<Method>, pub default_counter: Cell<u32>, pub algorithm: Cell<Algorithm>, pub digits: Cell<u32>, pub website: RefCell<Option<String>>, pub help_url: RefCell<Option<String>>, pub image_uri: RefCell<Option<String>>, pub remaining_time: Cell<u64>, pub accounts_model: AccountsModel, pub filter_model: FilterListModel, pub tick_callback: RefCell<Option<SourceId>>,
}

Fields§

§id: Cell<u32>§name: RefCell<String>§period: Cell<u32>§method: Cell<Method>§default_counter: Cell<u32>§algorithm: Cell<Algorithm>§digits: Cell<u32>§website: RefCell<Option<String>>§help_url: RefCell<Option<String>>§image_uri: RefCell<Option<String>>§remaining_time: Cell<u64>§accounts_model: AccountsModel§filter_model: FilterListModel§tick_callback: RefCell<Option<SourceId>>

Implementations§

source§

impl Provider

source

fn register_type()

Registers the type only once.

source§

impl Provider

source

pub fn downgrade(&self) -> <Self as Downgrade>::Weak

source§

impl Provider

source

fn set_image_uri_inner(&self, id: i32, uri: Option<&str>) -> Result<()>

source

fn set_image_uri(&self, uri: Option<&str>)

Trait Implementations§

source§

impl DerivedObjectProperties for Provider

source§

fn derived_properties() -> &'static [ParamSpec]

Properties installed for this type.
source§

fn derived_property(&self, id: usize, pspec: &ParamSpec) -> Value

Similar to ObjectImpl but auto-generated by the [Properties] macro to allow handling more complex use-cases.
source§

fn derived_set_property(&self, id: usize, value: &Value, pspec: &ParamSpec)

Similar to ObjectImpl but auto-generated by the [Properties] macro to allow handling more complex use-cases.
source§

impl ObjectImpl for Provider

source§

fn dispose(&self)

Disposes of the object. Read more
source§

fn properties() -> &'static [ParamSpec]

Properties installed for this type.
source§

fn set_property(&self, id: usize, value: &Value, pspec: &ParamSpec)

Property setter. Read more
source§

fn property(&self, id: usize, pspec: &ParamSpec) -> Value

Property getter. Read more
§

fn signals() -> &'static [Signal]

Signals installed for this type.
§

fn constructed(&self)

Constructed. Read more
§

fn notify(&self, pspec: &ParamSpec)

Function to be called when property change is notified for with self.notify("property").
§

fn dispatch_properties_changed(&self, pspecs: &[ParamSpec])

source§

impl ObjectSubclass for Provider

§

type ParentType = Object

Parent Rust type to inherit from.
§

type Interfaces = ()

List of interfaces implemented by this type.
§

type Class = ClassStruct<Provider>

The C class struct. Read more
§

type Instance = InstanceStruct<Provider>

The C instance struct. Read more
source§

const NAME: &'static str = "Provider"

GObject type name. Read more
§

type Type = Provider

Wrapper around this subclass defined with wrapper!
source§

fn new() -> Self

Constructor. Read more
§

const ABSTRACT: bool = false

If this subclass is an abstract class or not. Read more
§

fn type_init(_type_: &mut InitializingType<Self>)

Additional type initialization. Read more
§

fn class_init(_klass: &mut Self::Class)

Class initialization. Read more
§

fn with_class(_klass: &Self::Class) -> Self

Constructor. Read more
§

fn instance_init(_obj: &InitializingObject<Self>)

Performs additional instance initialization. Read more
source§

impl ObjectSubclassType for Provider

source§

fn type_data() -> NonNull<TypeData>

Storage for the type-specific data used during registration.
source§

fn type_() -> Type

Returns the glib::Type ID of the subclass. Read more

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> ObjectImplExt for T
where T: ObjectImpl,

§

fn parent_constructed(&self)

Chain up to the parent class’ implementation of glib::Object::constructed().
§

fn parent_notify(&self, pspec: &ParamSpec)

Chain up to the parent class’ implementation of glib::Object::notify().
§

fn parent_dispatch_properties_changed(&self, pspecs: &[ParamSpec])

Chain up to the parent class’ implementation of glib::Object::dispatch_properties_changed().
§

fn signal_chain_from_overridden( &self, token: &SignalClassHandlerToken, values: &[Value] ) -> Option<Value>

Chain up to parent class signal handler.
§

impl<T> ObjectSubclassExt for T
where T: ObjectSubclass,

§

fn instance(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>

👎Deprecated: Use obj() instead
Returns the corresponding object instance.
§

fn from_instance(obj: &<T as ObjectSubclass>::Type) -> &T

👎Deprecated: Use from_obj() instead
Returns the implementation from an instance.
§

fn obj(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>

Returns the corresponding object instance. Read more
§

fn from_obj(obj: &<T as ObjectSubclass>::Type) -> &T

Returns the implementation from an instance. Read more
§

fn ref_counted(&self) -> ObjectImplRef<T>

Returns a new reference-counted wrapper around self.
§

fn instance_data<U>(&self, type_: Type) -> Option<&U>
where U: Any + Send + Sync + 'static,

Returns a pointer to the instance implementation specific data. Read more
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