data Cancelled
The call was cancelled (the caller's task was cancelled or its deadline passed). One of the alternatives of NetError.
Example:
fn main() io {
let e: NetError = Cancelled{}
match e {
Cancelled _ => print("cancelled")
_ => print("other")
}
}Вывод
cancelled
@error pub(api) data CancelledС версии. 1.0.0-beta
Определено в: std/core/types.oxl:1329