#[repr(u32)]pub enum PersistMode {
DoNot = 0,
Application = 1,
ExplicitlyRevoked = 2,
}
Expand description
Persistence mode for a screencast or remote desktop session.
Variants§
DoNot = 0
Do not persist.
Application = 1
Persist while the application is running.
ExplicitlyRevoked = 2
Persist until explicitly revoked.
Trait Implementations§
Source§impl Clone for PersistMode
impl Clone for PersistMode
Source§fn clone(&self) -> PersistMode
fn clone(&self) -> PersistMode
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 PersistMode
impl Debug for PersistMode
Source§impl Default for PersistMode
impl Default for PersistMode
Source§fn default() -> PersistMode
fn default() -> PersistMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PersistMode
impl<'de> Deserialize<'de> for PersistMode
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<PersistMode> for Value
impl From<PersistMode> for Value
Source§fn from(v: PersistMode) -> Self
fn from(v: PersistMode) -> Self
Converts to this type from the input type.
Source§impl<'a> FromValue<'a> for PersistMode
impl<'a> FromValue<'a> for PersistMode
Source§type Checker = GenericValueTypeChecker<PersistMode>
type Checker = GenericValueTypeChecker<PersistMode>
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 PersistMode
impl HasParamSpec for PersistMode
type ParamSpec = ParamSpecEnum
Source§type SetValue = PersistMode
type SetValue = PersistMode
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(&str, PersistMode) -> ParamSpecEnumBuilder<'_, PersistMode>
fn param_spec_builder() -> Self::BuilderFn
Source§impl PartialEq for PersistMode
impl PartialEq for PersistMode
Source§impl Serialize for PersistMode
impl Serialize for PersistMode
Source§impl StaticType for PersistMode
impl StaticType for PersistMode
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.Source§impl ToValue for PersistMode
impl ToValue for PersistMode
Source§impl TryFromGlib<i32> for PersistMode
impl TryFromGlib<i32> for PersistMode
Source§impl Type for PersistMode
impl Type for PersistMode
Source§impl ValueType for PersistMode
impl ValueType for PersistMode
Source§type Type = PersistMode
type Type = PersistMode
Type to get the
Type
from. Read moreimpl Copy for PersistMode
impl Eq for PersistMode
impl StructuralPartialEq for PersistMode
Auto Trait Implementations§
impl Freeze for PersistMode
impl RefUnwindSafe for PersistMode
impl Send for PersistMode
impl Sync for PersistMode
impl Unpin for PersistMode
impl UnwindSafe for PersistMode
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,
§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 Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
Source§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
Source§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.
Source§impl<T> DynamicType for T
impl<T> DynamicType for T
§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
.