pub struct BatchOptions { /* private fields */ }Expand description
Options for batch operations.
BatchOptions controls batch behavior. Shell operation timeout is supplied
by crate::manager::QuickAccessManager configuration rather than this
type.
§Examples
use wincent::BatchOptions;
let options = BatchOptions::new().refresh_recent_files();
assert!(options.force_update());Implementations§
Source§impl BatchOptions
impl BatchOptions
Sourcepub fn force_update(&self) -> bool
pub fn force_update(&self) -> bool
Whether Recent Files display data is refreshed after successful additions.
Sourcepub fn with_force_update(self, force_update: bool) -> Self
pub fn with_force_update(self, force_update: bool) -> Self
Sets whether Recent Files display data is refreshed after successful additions.
Sourcepub fn refresh_recent_files(self) -> Self
pub fn refresh_recent_files(self) -> Self
Refreshes Recent Files display data after successful additions.
Trait Implementations§
Source§impl Clone for BatchOptions
impl Clone for BatchOptions
Source§fn clone(&self) -> BatchOptions
fn clone(&self) -> BatchOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BatchOptions
impl Debug for BatchOptions
Source§impl Default for BatchOptions
impl Default for BatchOptions
Source§fn default() -> BatchOptions
fn default() -> BatchOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for BatchOptions
impl PartialEq for BatchOptions
Source§fn eq(&self, other: &BatchOptions) -> bool
fn eq(&self, other: &BatchOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BatchOptions
impl Eq for BatchOptions
impl StructuralPartialEq for BatchOptions
Auto Trait Implementations§
impl Freeze for BatchOptions
impl RefUnwindSafe for BatchOptions
impl Send for BatchOptions
impl Sync for BatchOptions
impl Unpin for BatchOptions
impl UnsafeUnpin for BatchOptions
impl UnwindSafe for BatchOptions
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