Function poll [src]

Polls for incoming data packets and processes outgoing data packets. Returns true if a packet was received or processed.

Prototype

pub fn poll(self: *Ip6) PollError!bool

Parameters

self: *Ip6

Possible Errors

DeviceError
InvalidParameter
NotStarted
Timeout
Unexpected UnexpectedError

Source

pub fn poll(self: *Ip6) PollError!bool { switch (self._poll(self)) { .success => return true, .not_ready => return false, .not_started => return Error.NotStarted, .invalid_parameter => return Error.InvalidParameter, .device_error => return Error.DeviceError, .timeout => return Error.Timeout, else => |status| return uefi.unexpectedStatus(status), } }