method Response.failed
true when the call ended with a NetError (a refusal, or an error of the handler itself, that next reported).
Example:
fn main() io {
print("{Response{ passed: true }.failed()} {Response.refuse(Timeout{}).failed()}")
}Output
false true
pub(api) fn failed() -> boolComplexity. O(1).
Since. 1.0.0-beta
Returns
bool
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/rpc.oxl:478