Enum ashpd::flatpak::UpdateStatus
source · #[repr(u32)]pub enum UpdateStatus {
Running = 0,
Empty = 1,
Done = 2,
Failed = 3,
}
Expand description
The update status.
Variants§
Trait Implementations§
source§impl Clone for UpdateStatus
impl Clone for UpdateStatus
source§fn clone(&self) -> UpdateStatus
fn clone(&self) -> UpdateStatus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UpdateStatus
impl Debug for UpdateStatus
source§impl<'de> Deserialize<'de> for UpdateStatus
impl<'de> Deserialize<'de> for UpdateStatus
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<UpdateStatus> for Value
impl From<UpdateStatus> for Value
source§fn from(v: UpdateStatus) -> Self
fn from(v: UpdateStatus) -> Self
Converts to this type from the input type.
source§impl<'a> FromValue<'a> for UpdateStatus
impl<'a> FromValue<'a> for UpdateStatus
§type Checker = GenericValueTypeChecker<UpdateStatus>
type Checker = GenericValueTypeChecker<UpdateStatus>
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 UpdateStatus
impl HasParamSpec for UpdateStatus
type ParamSpec = ParamSpecEnum
§type SetValue = UpdateStatus
type SetValue = UpdateStatus
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str, _: UpdateStatus) -> ParamSpecEnumBuilder<'_, UpdateStatus>
fn param_spec_builder() -> Self::BuilderFn
source§impl PartialEq for UpdateStatus
impl PartialEq for UpdateStatus
source§fn eq(&self, other: &UpdateStatus) -> bool
fn eq(&self, other: &UpdateStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for UpdateStatus
impl Serialize for UpdateStatus
source§impl StaticType for UpdateStatus
impl StaticType for UpdateStatus
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToValue for UpdateStatus
impl ToValue for UpdateStatus
source§impl TryFromGlib<i32> for UpdateStatus
impl TryFromGlib<i32> for UpdateStatus
source§impl Type for UpdateStatus
impl Type for UpdateStatus
source§impl ValueType for UpdateStatus
impl ValueType for UpdateStatus
§type Type = UpdateStatus
type Type = UpdateStatus
Type to get the
Type
from. Read moreimpl Copy for UpdateStatus
impl Eq for UpdateStatus
impl StructuralPartialEq for UpdateStatus
Auto Trait Implementations§
impl Freeze for UpdateStatus
impl RefUnwindSafe for UpdateStatus
impl Send for UpdateStatus
impl Sync for UpdateStatus
impl Unpin for UpdateStatus
impl UnwindSafe for UpdateStatus
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
source§impl<'de, T> DynamicDeserialize<'de> for T
impl<'de, T> DynamicDeserialize<'de> for T
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
source§fn deserializer_for_signature<S>(
signature: S
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature<S>( signature: S ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this signature.
source§impl<T> DynamicType for T
impl<T> DynamicType for T
source§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoClosureReturnValue for Twhere
T: Into<Value>,
impl<T> IntoClosureReturnValue for Twhere
T: Into<Value>,
fn into_closure_return_value(self) -> Option<Value>
§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
§impl<T> ToSendValue for T
impl<T> ToSendValue for T
§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.