Function transmit [src]

Places asynchronous outgoing data packets into the transmit queue.

Prototype

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

Parameters

self: *ManagedNetworktoken: *CompletionToken

Possible Errors

AccessDenied
DeviceError
InvalidParameter
NoMedia
NotReady
NotStarted
OutOfResources
Unexpected UnexpectedError

Source

pub fn transmit(self: *ManagedNetwork, token: *CompletionToken) TransmitError!void { switch (self._transmit(self, token)) { .success => {}, .not_started => return Error.NotStarted, .invalid_parameter => return Error.InvalidParameter, .access_denied => return Error.AccessDenied, .out_of_resources => return Error.OutOfResources, .device_error => return Error.DeviceError, .not_ready => return Error.NotReady, .no_media => return Error.NoMedia, else => |status| return uefi.unexpectedStatus(status), } }