Function transmit [src]
Places outgoing data packets into the transmit queue.
Prototype
pub fn transmit(self: *Ip6, token: *CompletionToken) TransmitError!void Parameters
self: *Ip6token: *CompletionToken Possible Errors
Source
pub fn transmit(self: *Ip6, token: *CompletionToken) TransmitError!void {
switch (self._transmit(self, token)) {
.success => {},
.not_started => return Error.NotStarted,
.no_mapping => return Error.NoMapping,
.invalid_parameter => return Error.InvalidParameter,
.access_denied => return Error.AccessDenied,
.not_ready => return Error.NotReady,
.not_found => return Error.NotFound,
.out_of_resources => return Error.OutOfResources,
.buffer_too_small => return Error.BufferTooSmall,
.bad_buffer_size => return Error.BadBufferSize,
.device_error => return Error.DeviceError,
.no_media => return Error.NoMedia,
else => |status| return uefi.unexpectedStatus(status),
}
}