Function receive [src]
Places a receiving request into the receiving queue.
Prototype
pub fn receive(self: *Ip6, token: *CompletionToken) ReceiveError!void
Parameters
self: *Ip6
token: *CompletionToken
Possible Errors
Source
pub fn receive(self: *Ip6, token: *CompletionToken) ReceiveError!void {
switch (self._receive(self, token)) {
.success => {},
.not_started => return Error.NotStarted,
.no_mapping => return Error.NoMapping,
.invalid_parameter => return Error.InvalidParameter,
.out_of_resources => return Error.OutOfResources,
.device_error => return Error.DeviceError,
.access_denied => return Error.AccessDenied,
.not_ready => return Error.NotReady,
.no_media => return Error.NoMedia,
else => |status| return uefi.unexpectedStatus(status),
}
}