pub enum Run {
Library,
Returned(Value),
Exit(u8),
Raised(Raised),
}Expand description
How running a program’s __main against IO ended.
Variants§
Library
The module has no __main: it is a library rather than a program.
Returned(Value)
__main returned this value. A runner ignores it — printing a result is
REPL behaviour — except to notice an entry still wanting arguments.
Exit(u8)
IO.Proc.return asked for this exit status.
Raised(Raised)
A raise reached the top.
Auto Trait Implementations§
impl !RefUnwindSafe for Run
impl !Send for Run
impl !Sync for Run
impl !UnwindSafe for Run
impl Freeze for Run
impl Unpin for Run
impl UnsafeUnpin for Run
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