Function poll [src]
Polls for incoming data packets and processes outgoing data packets.
Prototype
pub fn poll(self: *ManagedNetwork) PollError!void
Parameters
self: *ManagedNetwork
Possible Errors
Source
pub fn poll(self: *ManagedNetwork) PollError!void {
switch (self._poll(self)) {
.success => {},
.not_started => return Error.NotStarted,
.device_error => return Error.DeviceError,
.not_ready => return Error.NotReady,
.timeout => return Error.Timeout,
else => |status| return uefi.unexpectedStatus(status),
}
}