Function reset [src]

Resets a network adapter and reinitializes it with the parameters that were provided in the previous call to initialize().

Prototype

pub fn reset(self: *SimpleNetwork, extended_verification: bool) ResetError!void

Parameters

self: *SimpleNetworkextended_verification: bool

Possible Errors

DeviceError
InvalidParameter
NotStarted
Unexpected UnexpectedError
Unsupported

Source

pub fn reset(self: *SimpleNetwork, extended_verification: bool) ResetError!void { switch (self._reset(self, extended_verification)) { .success => {}, .not_started => return Error.NotStarted, .invalid_parameter => return Error.InvalidParameter, .device_error => return Error.DeviceError, .unsupported => return Error.Unsupported, else => |status| return uefi.unexpectedStatus(status), } }