fn statusOf
The status a NetError becomes on the wire (§10.1).
Example:
use std.rpc { statusOf, Status }
fn main() io {
print("{statusOf(Unavailable{}) == Status.Unavailable}")
}Output
true
pub(api) fn statusOf(e: NetError) -> StatusComplexity. O(1).
Since. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
e | NetError |
Returns
Effects
none declared (pure unless the body says otherwise)
Defined in: std/rpc/rpc.oxl:102