Struct ashpd::desktop::background::BackgroundRequest
source · pub struct BackgroundRequest { /* private fields */ }
Expand description
A builder-pattern type to construct Background
.
Implementations§
source§impl BackgroundRequest
impl BackgroundRequest
sourcepub fn identifier(self, identifier: impl Into<Option<WindowIdentifier>>) -> Self
pub fn identifier(self, identifier: impl Into<Option<WindowIdentifier>>) -> Self
Sets a window identifier.
sourcepub fn auto_start(self, auto_start: impl Into<Option<bool>>) -> Self
pub fn auto_start(self, auto_start: impl Into<Option<bool>>) -> Self
Sets whether to auto start the application or not.
sourcepub fn dbus_activatable(self, dbus_activatable: impl Into<Option<bool>>) -> Self
pub fn dbus_activatable(self, dbus_activatable: impl Into<Option<bool>>) -> Self
Sets whether the application is dbus activatable.
sourcepub fn command<P: IntoIterator<Item = I>, I: AsRef<str> + Type + Serialize>(
self,
command: impl Into<Option<P>>,
) -> Self
pub fn command<P: IntoIterator<Item = I>, I: AsRef<str> + Type + Serialize>( self, command: impl Into<Option<P>>, ) -> Self
Specifies the command line to execute.
If this is not specified, the Exec
line from the desktop
file
sourcepub fn reason<'a>(self, reason: impl Into<Option<&'a str>>) -> Self
pub fn reason<'a>(self, reason: impl Into<Option<&'a str>>) -> Self
Sets a user-visible reason for the request.
sourcepub async fn send(self) -> Result<Request<Background>, Error>
pub async fn send(self) -> Result<Request<Background>, Error>
Build the Background
.
Trait Implementations§
source§impl Debug for BackgroundRequest
impl Debug for BackgroundRequest
source§impl Default for BackgroundRequest
impl Default for BackgroundRequest
source§fn default() -> BackgroundRequest
fn default() -> BackgroundRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BackgroundRequest
impl RefUnwindSafe for BackgroundRequest
impl Send for BackgroundRequest
impl Sync for BackgroundRequest
impl Unpin for BackgroundRequest
impl UnwindSafe for BackgroundRequest
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> 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> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.