pub enum OpenOutcome {
Opened,
Failed(String),
}Expand description
What came of an opening.
Variants§
Opened
The program was started with what it was given. What the desktop did with it afterwards is out of reach from a terminal, so this is as far as the answer goes.
Failed(String)
The program could not be started at all: this desktop has no opener installed, or the program was not found.
Trait Implementations§
Source§impl Clone for OpenOutcome
impl Clone for OpenOutcome
Source§fn clone(&self) -> OpenOutcome
fn clone(&self) -> OpenOutcome
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 OpenOutcome
impl Debug for OpenOutcome
impl Eq for OpenOutcome
Source§impl PartialEq for OpenOutcome
impl PartialEq for OpenOutcome
impl StructuralPartialEq for OpenOutcome
Auto Trait Implementations§
impl Freeze for OpenOutcome
impl RefUnwindSafe for OpenOutcome
impl Send for OpenOutcome
impl Sync for OpenOutcome
impl Unpin for OpenOutcome
impl UnsafeUnpin for OpenOutcome
impl UnwindSafe for OpenOutcome
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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