pub enum LoadingState {
Initial,
Loading,
Ready,
Error,
}Expand description
The state of a resource that can be loaded.
Variants§
Initial
It hasn’t been loaded yet.
Loading
It is currently loading.
Ready
It has been fully loaded.
Error
An error occurred while loading it.
Implementations§
Source§impl LoadingState
impl LoadingState
Sourcefn register_enum() -> Type
fn register_enum() -> Type
Registers the enum only once.
Trait Implementations§
Source§impl Clone for LoadingState
impl Clone for LoadingState
Source§fn clone(&self) -> LoadingState
fn clone(&self) -> LoadingState
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LoadingState
impl Debug for LoadingState
Source§impl Default for LoadingState
impl Default for LoadingState
Source§fn default() -> LoadingState
fn default() -> LoadingState
Returns the “default value” for a type. Read more
Source§impl From<LoadingState> for Value
impl From<LoadingState> for Value
Source§fn from(v: LoadingState) -> Self
fn from(v: LoadingState) -> Self
Converts to this type from the input type.
Source§impl<'a> FromValue<'a> for LoadingState
impl<'a> FromValue<'a> for LoadingState
Source§type Checker = GenericValueTypeChecker<LoadingState>
type Checker = GenericValueTypeChecker<LoadingState>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value. Read moreSource§impl HasParamSpec for LoadingState
impl HasParamSpec for LoadingState
type ParamSpec = ParamSpecEnum
Source§type SetValue = LoadingState
type SetValue = LoadingState
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(&str, LoadingState) -> ParamSpecEnumBuilder<'_, LoadingState>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Ord for LoadingState
impl Ord for LoadingState
Source§impl PartialEq for LoadingState
impl PartialEq for LoadingState
Source§impl PartialOrd for LoadingState
impl PartialOrd for LoadingState
Source§impl StaticType for LoadingState
impl StaticType for LoadingState
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.Source§impl ToValue for LoadingState
impl ToValue for LoadingState
Source§impl TryFromGlib<i32> for LoadingState
impl TryFromGlib<i32> for LoadingState
Source§impl ValueType for LoadingState
impl ValueType for LoadingState
Source§type Type = LoadingState
type Type = LoadingState
Type to get the
Type from. Read moreimpl Copy for LoadingState
impl Eq for LoadingState
impl StructuralPartialEq for LoadingState
Auto Trait Implementations§
impl Freeze for LoadingState
impl RefUnwindSafe for LoadingState
impl Send for LoadingState
impl Sync for LoadingState
impl Unpin for LoadingState
impl UnwindSafe for LoadingState
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> HasParamSpecDefaulted for Twhere
T: StaticType + FromGlib<i32> + IntoGlib<GlibType = i32> + HasParamSpec<ParamSpec = ParamSpecEnum> + Default,
impl<T> HasParamSpecDefaulted for Twhere
T: StaticType + FromGlib<i32> + IntoGlib<GlibType = i32> + HasParamSpec<ParamSpec = ParamSpecEnum> + Default,
type BuilderFnDefaulted = fn(&str) -> ParamSpecEnumBuilder<'_, T>
fn param_spec_builder_defaulted() -> <T as HasParamSpecDefaulted>::BuilderFnDefaulted
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue clone of self.