Function receive [src]

Places an asynchronous receiving request into the receiving queue.

Prototype

pub fn receive(self: *ManagedNetwork, token: *CompletionToken) TransmitError!void

Parameters

self: *ManagedNetworktoken: *CompletionToken

Possible Errors

AccessDenied
DeviceError
InvalidParameter
NoMedia
NotReady
NotStarted
OutOfResources
Unexpected UnexpectedError

Source

pub fn receive(self: *ManagedNetwork, token: *CompletionToken) TransmitError!void { switch (self._receive(self, token)) { .success => {}, .not_started => return Error.NotStarted, .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), } }