pub fn exit(status: i32) -> StatusExpand description
Exits the current job
§Usage
This function immediately exit the current job instance, returning the given status as job termination status code.
The status code is any 32 bit integer.
There is no Sentry-level semantic about the status code value. This
value is only used in order to call the _finish(status) function of the
current task so that it is possible to delivers differentiated
termination behavior depending on the returned status code. See
Sentry concept
for more informations about task terminations.
NOTE: This function never returns.
§Example
ⓘ
sentry_uapi::syscall::exit(42);
// unreachable