Function cancel [src]

Prototype

pub fn cancel(self: *Udp6, token: ?*CompletionToken) CancelError!void

Parameters

self: *Udp6token: ?*CompletionToken

Possible Errors

InvalidParameter
NotFound
NotStarted
Unexpected UnexpectedError

Source

pub fn cancel(self: *Udp6, token: ?*CompletionToken) CancelError!void { switch (self._cancel(self, token)) { .success => {}, .invalid_parameter => return Error.InvalidParameter, .not_started => return Error.NotStarted, .not_found => return Error.NotFound, else => |status| return uefi.unexpectedStatus(status), } }