Struct ashpd::desktop::screenshot::ScreenshotRequest
source · pub struct ScreenshotRequest { /* private fields */ }
Expand description
A builder-pattern type to construct a screenshot Screenshot
.
Implementations§
source§impl ScreenshotRequest
impl ScreenshotRequest
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 modal(self, modal: impl Into<Option<bool>>) -> Self
pub fn modal(self, modal: impl Into<Option<bool>>) -> Self
Sets whether the dialog should be a modal.
sourcepub fn interactive(self, interactive: impl Into<Option<bool>>) -> Self
pub fn interactive(self, interactive: impl Into<Option<bool>>) -> Self
Sets whether the dialog should offer customization before a screenshot or not.
sourcepub async fn send(self) -> Result<Request<Screenshot>, Error>
pub async fn send(self) -> Result<Request<Screenshot>, Error>
Build the Screenshot
.
Trait Implementations§
source§impl Debug for ScreenshotRequest
impl Debug for ScreenshotRequest
source§impl Default for ScreenshotRequest
impl Default for ScreenshotRequest
source§fn default() -> ScreenshotRequest
fn default() -> ScreenshotRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScreenshotRequest
impl RefUnwindSafe for ScreenshotRequest
impl Send for ScreenshotRequest
impl Sync for ScreenshotRequest
impl Unpin for ScreenshotRequest
impl UnwindSafe for ScreenshotRequest
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.