pub struct PickRequest { /* private fields */ }Implementations§
Source§impl PickRequest
impl PickRequest
pub fn open(title: &str, accept_label: &str) -> Self
pub fn open_multiple(title: &str, accept_label: &str) -> Self
pub fn directory(title: &str, accept_label: &str) -> Self
pub fn writable_directory(title: &str, accept_label: &str) -> Self
pub fn is_writable_directory(&self) -> bool
pub fn save(title: &str, accept_label: &str, suggested_name: &str) -> Self
pub fn initial_directory(self, directory: impl Into<PathBuf>) -> Self
pub fn directory_hint(&self) -> Option<&Path>
Sourcepub fn max_contents_bytes(self, limit: usize) -> Self
pub fn max_contents_bytes(self, limit: usize) -> Self
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) -> Self
pub fn filter(self, f: FileFilter) -> Self
pub fn all_files(self) -> Self
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) -> PortalChannel
pub fn send_scoped(self, scope: impl EffectCheck) -> PortalChannel
pub fn send_save_file(self) -> OpenFileChannel
pub fn send_multiple(self) -> MultiChannel
Trait Implementations§
Source§impl Clone for PickRequest
impl Clone for PickRequest
Auto Trait Implementations§
impl Forget for PickRequest
impl Freeze for PickRequest
impl Move for PickRequest
impl RefUnwindSafe for PickRequest
impl Send for PickRequest
impl Sync for PickRequest
impl Unpin for PickRequest
impl UnsafeUnpin for PickRequest
impl UnwindSafe for PickRequest
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