Function stop [src]
Changes the state of a network interface from "started" to "stopped".
Prototype
pub fn stop(self: *SimpleNetwork) StopError!void
Parameters
self: *SimpleNetwork
Possible Errors
Source
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),
}
}