pub struct StartFlowOptions { /* private fields */ }Expand description
Options for starting a permission flow.
Implementations§
Source§impl StartFlowOptions
impl StartFlowOptions
Sourcepub fn new<P: Into<AppPath>>(permission: Permission, app_path: P) -> Self
pub fn new<P: Into<AppPath>>(permission: Permission, app_path: P) -> Self
Creates a new set of start-flow options.
Sourcepub fn use_click_source_frame(self, use_click_source_frame: bool) -> Self
pub fn use_click_source_frame(self, use_click_source_frame: bool) -> Self
Sets whether the current mouse location should be used as the source frame for the launch animation.
Sourcepub fn without_click_source_frame(self) -> Self
pub fn without_click_source_frame(self) -> Self
Disables the click-source-frame launch animation.
pub fn permission(&self) -> Permission
pub fn app_path(&self) -> &AppPath
pub fn uses_click_source_frame(&self) -> bool
Trait Implementations§
Source§impl Clone for StartFlowOptions
impl Clone for StartFlowOptions
Source§fn clone(&self) -> StartFlowOptions
fn clone(&self) -> StartFlowOptions
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for StartFlowOptions
impl RefUnwindSafe for StartFlowOptions
impl Send for StartFlowOptions
impl Sync for StartFlowOptions
impl Unpin for StartFlowOptions
impl UnsafeUnpin for StartFlowOptions
impl UnwindSafe for StartFlowOptions
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