Function cancel [src]
Aborts an asynchronous transmit or receive request.
Prototype
pub fn cancel(self: *ManagedNetwork, token: ?*const CompletionToken) CancelError!void
Parameters
self: *ManagedNetwork
token: ?*const CompletionToken
Possible Errors
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),
}
}