Struct ashpd::desktop::wallpaper::WallpaperRequest
source · pub struct WallpaperRequest { /* private fields */ }
Expand description
A builder-pattern type to set the wallpaper.
Implementations§
source§impl WallpaperRequest
impl WallpaperRequest
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 show_preview(self, show_preview: impl Into<Option<bool>>) -> Self
pub fn show_preview(self, show_preview: impl Into<Option<bool>>) -> Self
Whether to show a preview of the picture. Note the portal may decide to show a preview even if this option is not set.
sourcepub fn set_on(self, set_on: impl Into<Option<SetOn>>) -> Self
pub fn set_on(self, set_on: impl Into<Option<SetOn>>) -> Self
Sets where to set the wallpaper on.
sourcepub async fn build_file(
self,
file: &BorrowedFd<'_>,
) -> Result<Request<()>, Error>
pub async fn build_file( self, file: &BorrowedFd<'_>, ) -> Result<Request<()>, Error>
Build using a file.
Trait Implementations§
source§impl Debug for WallpaperRequest
impl Debug for WallpaperRequest
source§impl Default for WallpaperRequest
impl Default for WallpaperRequest
source§fn default() -> WallpaperRequest
fn default() -> WallpaperRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WallpaperRequest
impl RefUnwindSafe for WallpaperRequest
impl Send for WallpaperRequest
impl Sync for WallpaperRequest
impl Unpin for WallpaperRequest
impl UnwindSafe for WallpaperRequest
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.