pub struct PickRequest { /* private fields */ }Implementations§
Source§impl PickRequest
impl PickRequest
pub fn open(title: &str, accept_label: &str) -> PickRequest
pub fn open_multiple(title: &str, accept_label: &str) -> PickRequest
pub fn directory(title: &str, accept_label: &str) -> PickRequest
pub fn writable_directory(title: &str, accept_label: &str) -> PickRequest
pub fn is_writable_directory(&self) -> bool
pub fn save( title: &str, accept_label: &str, suggested_name: &str, ) -> PickRequest
pub fn initial_directory(self, directory: impl Into<PathBuf>) -> PickRequest
pub fn directory_hint(&self) -> Option<&Path>
Sourcepub fn max_contents_bytes(self, limit: usize) -> PickRequest
pub fn max_contents_bytes(self, limit: usize) -> PickRequest
Bound what the app reads of a choice into memory: an Open read past this fails rather than growing without limit. A folder’s files count together.
pub fn contents_byte_limit(&self) -> Option<usize>
pub fn thread_name(self, name: &str) -> PickRequest
pub fn filter(self, f: FileFilter) -> PickRequest
pub fn all_files(self) -> PickRequest
pub fn title(&self) -> &str
pub fn is_multiple(&self) -> bool
pub fn is_open(&self) -> bool
pub fn filter_names(&self) -> Vec<&str>
pub fn suggested_name(&self) -> Option<&str>
pub fn accept_label(&self) -> &str
pub fn filters(&self) -> &[FileFilter]
pub fn is_directory(&self) -> bool
pub fn kind(&self) -> &PickKind
pub fn worker_name(&self) -> &str
pub fn send(self) -> Receiver<PortalOutcome>
pub fn send_scoped(self, scope: impl EffectCheck) -> Receiver<PortalOutcome>
pub fn send_save_file(self) -> Receiver<OpenFileOutcome>
pub fn send_multiple(self) -> Receiver<MultiOutcome>
Trait Implementations§
Source§impl Clone for PickRequest
impl Clone for PickRequest
Source§fn clone(&self) -> PickRequest
fn clone(&self) -> PickRequest
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 moreAuto Trait Implementations§
impl Forget for PickRequest
impl Freeze for PickRequest
impl Move for PickRequest
impl RefUnwindSafe for PickRequest
impl Send for PickRequestwhere
RawVecInner: Send,
impl Sync for PickRequestwhere
RawVecInner: Sync,
impl Unpin for PickRequest
impl UnsafeUnpin for PickRequestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<FileFilter>: UnsafeUnpin,
impl UnwindSafe for PickRequestwhere
RawVecInner: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more