pub fn start(self: *SimpleNetwork) StartError!void self: *SimpleNetwork109
110
111
112
113
114
115
116
117
118 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),
}
}
Changes the state of a network interface from "stopped" to "started".