pub struct ShellLink(/* private fields */);Implementations§
Source§impl ShellLink
impl ShellLink
pub fn connect(stream: Stream) -> Result<Self>
pub fn picker(&self, elsewhere: Arc<dyn FilePicker>) -> Arc<dyn FilePicker> ⓘ
pub fn opener(&self, elsewhere: Arc<dyn UriOpener>) -> Arc<dyn UriOpener> ⓘ
pub fn choose_app( &self, purpose: &str, chosen: impl FnOnce(Result<Option<ChosenApp>, String>) + Send + 'static, )
Sourcepub fn reopen(
&self,
reference: &Path,
write: bool,
answer: impl FnOnce(Result<(File, PathBuf, String), String>) + Send + 'static,
)
pub fn reopen( &self, reference: &Path, write: bool, answer: impl FnOnce(Result<(File, PathBuf, String), String>) + Send + 'static, )
Ask the chooser to open reference again: the file a window showed, or one inside a
folder the person chose. write asks for the file beside a Save, opened for writing.
Trait Implementations§
Auto Trait Implementations§
impl Forget for ShellLink
impl Freeze for ShellLink
impl Move for ShellLink
impl RefUnwindSafe for ShellLinkwhere
Atomic<usize>: RefUnwindSafe,
Mutex<UnixStream>: RefUnwindSafe,
Mutex<Option<HashMap<u64, Box<dyn FnOnce(Reply, Vec<Descriptor>) + Send>>>>: RefUnwindSafe,
Atomic<u64>: RefUnwindSafe,
impl Send for ShellLink
impl Sync for ShellLink
impl Unpin for ShellLink
impl UnsafeUnpin for ShellLinkwhere
*const ArcInner<LinkInner> is !null: UnsafeUnpin,
PhantomData<ArcInner<LinkInner>>: UnsafeUnpin,
impl UnwindSafe for ShellLinkwhere
Arc<LinkInner>: 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