Struct ashpd::desktop::background::Background
source · pub struct Background { /* private fields */ }
Expand description
The response of a BackgroundRequest
request.
Implementations§
source§impl Background
impl Background
sourcepub fn request() -> BackgroundRequest
pub fn request() -> BackgroundRequest
Creates a new builder-pattern struct instance to construct
Background
.
This method returns an instance of BackgroundRequest
.
sourcepub fn run_in_background(&self) -> bool
pub fn run_in_background(&self) -> bool
If the application is allowed to run in the background.
sourcepub fn auto_start(&self) -> bool
pub fn auto_start(&self) -> bool
If the application will be auto-started.
Trait Implementations§
source§impl Debug for Background
impl Debug for Background
source§impl<'de> Deserialize<'de> for Background
impl<'de> Deserialize<'de> for Background
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
Auto Trait Implementations§
impl Freeze for Background
impl RefUnwindSafe for Background
impl Send for Background
impl Sync for Background
impl Unpin for Background
impl UnwindSafe for Background
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<'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