pub enum ItemsRequest {
Get {
type_: u32,
extra: u32,
responder: ItemsGetResponder,
},
Get2 {
type_: u32,
extra: Option<Box<Extra>>,
responder: ItemsGet2Responder,
},
GetBootloaderFile {
filename: String,
responder: ItemsGetBootloaderFileResponder,
},
}
Expand description
Protocol for retrieving boot item payloads.
Variants§
Get
Get a payload
for a boot item of type
and extra
.
NOTE: We return the length
of the item, as VMOs must be page-aligned.
TODO: Refactor API: https://fxbug.dev/42109921
For a list of type
s, refer to <lib/zbi-format/zbi.h>.
For a list of extra
s, refer to <lib/zbi-format/driver-config.h>.
Get2
Get all stored items of type
, optionally also restricted by extra
. Note that
length is returned for each item as VMOs are page-aligned.
Returns ZX_ERR_NOT_SUPPORTED if this is an untracked item which will never be stored.
GetBootloaderFile
Gets the payload
for a ZBI_TYPE_BOOTLOADER_FILE
boot item.
Note: ZX_PROP_VMO_CONTENT_SIZE will be set to the actual file content size
Implementations§
Source§impl ItemsRequest
impl ItemsRequest
pub fn into_get(self) -> Option<(u32, u32, ItemsGetResponder)>
pub fn into_get2(self) -> Option<(u32, Option<Box<Extra>>, ItemsGet2Responder)>
pub fn into_get_bootloader_file( self, ) -> Option<(String, ItemsGetBootloaderFileResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ItemsRequest
impl !RefUnwindSafe for ItemsRequest
impl Send for ItemsRequest
impl Sync for ItemsRequest
impl Unpin for ItemsRequest
impl !UnwindSafe for ItemsRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more