Function start [src]

Changes the state of a network interface from "stopped" to "started".

Prototype

pub fn start(self: *SimpleNetwork) StartError!void

Parameters

self: *SimpleNetwork

Possible Errors

AlreadyStarted
DeviceError
InvalidParameter
Unexpected UnexpectedError
Unsupported

Source

pub fn start(self: *SimpleNetwork) StartError!void { switch (self._start(self)) { .success => {}, .already_started => return Error.AlreadyStarted, .invalid_parameter => return Error.InvalidParameter, .device_error => return Error.DeviceError, .unsupported => return Error.Unsupported, else => |status| return uefi.unexpectedStatus(status), } }