pub fn stop(self: *SimpleNetwork) StopError!void self: *SimpleNetwork121
122
123
124
125
126
127
128
129
130 pub fn stop(self: *SimpleNetwork) StopError!void {
switch (self._stop(self)) {
.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),
}
}
Changes the state of a network interface from "started" to "stopped".