pub enum SyncResult<T, E> {
Ok(T),
Error(E),
}
Expand description
Result of a synchronous command sent to the Isabelle server.
Variants§
Ok(T)
If the command was successful (server returned OK
), contains the result value of type T
.
Error(E)
If the command was unsuccessful (server returned ERROR
), contains an error value of type E
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T, E> Freeze for SyncResult<T, E>
impl<T, E> RefUnwindSafe for SyncResult<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for SyncResult<T, E>
impl<T, E> Sync for SyncResult<T, E>
impl<T, E> Unpin for SyncResult<T, E>
impl<T, E> UnwindSafe for SyncResult<T, E>where
T: UnwindSafe,
E: 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