Function cancel [src]

Aborts an asynchronous transmit or receive request.

Prototype

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

Parameters

self: *ManagedNetworktoken: ?*const CompletionToken

Possible Errors

InvalidParameter
NotFound
NotStarted
Unexpected UnexpectedError

Source

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