data AccessDenied
The policy of the callee refuses the caller (§13). One of the alternatives of NetError.
Example:
fn main() io {
let e: NetError = AccessDenied{}
match e {
AccessDenied _ => print("denied")
_ => print("other")
}
}Вывод
denied
@error pub(api) data AccessDeniedС версии. 1.0.0-beta
Определено в: std/core/types.oxl:1345