Function protocolsPerHandle [src]
Prototype
pub fn protocolsPerHandle( self: *const BootServices, handle: Handle, ) ProtocolsPerHandleError![]*const Guid Parameters
self: *const BootServiceshandle: Handle Possible Errors
Source
pub fn protocolsPerHandle(
self: *const BootServices,
handle: Handle,
) ProtocolsPerHandleError![]*const Guid {
var guids: [*]*const Guid = undefined;
var len: usize = undefined;
switch (self._protocolsPerHandle(
handle,
&guids,
&len,
)) {
.success => return guids[0..len],
.invalid_parameter => return error.InvalidParameter,
.out_of_resources => return error.OutOfResources,
else => |status| return uefi.unexpectedStatus(status),
}
}