start
Changes the state of a network interface from "stopped" to "started".
Function parameters
Parameters
- self:*SimpleNetwork
Type definitions in this namespace
Types
Source
Implementation
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),
}
}