Function cancel [src]

Abort an asynchronous transmits or receive request.

Prototype

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

Parameters

self: *Ip6token: ?*CompletionToken

Possible Errors

DeviceError
InvalidParameter
NotFound
NotStarted
Unexpected UnexpectedError

Source

pub fn cancel(self: *Ip6, 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, .device_error => return Error.DeviceError, else => |status| return uefi.unexpectedStatus(status), } }