pub enum AsyncResult<T, F> {
Finished(T),
Failed(FailedResult<F>),
Error(Message),
}
Expand description
Result of an asynchronous command sent to the Isabelle server.
Variants§
Finished(T)
If the task associated with the command was successful (server returned FINISHED
), contains the result value of type T
.
Failed(FailedResult<F>)
If the task associated with the command failed (server returned FAILED
), contains a FailedResult value of type F
.
Error(Message)
If the async command fails immediately, contains the message
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T, F> Freeze for AsyncResult<T, F>
impl<T, F> RefUnwindSafe for AsyncResult<T, F>where
T: RefUnwindSafe,
F: RefUnwindSafe,
impl<T, F> Send for AsyncResult<T, F>
impl<T, F> Sync for AsyncResult<T, F>
impl<T, F> Unpin for AsyncResult<T, F>
impl<T, F> UnwindSafe for AsyncResult<T, F>where
T: UnwindSafe,
F: 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