pub struct MockBootArgumentsService { /* private fields */ }
Expand description
Serves fuchsia.boot/Arguments.GetString from a supplied arguments map. Panics on unexpected fidl methods. GetString panics on unexpected keys. GetStrings returns None for unexpected keys.
Implementations§
Source§impl MockBootArgumentsService
impl MockBootArgumentsService
Sourcepub fn insert_pkgfs_boot_arg(&mut self, system_image: Hash)
pub fn insert_pkgfs_boot_arg(&mut self, system_image: Hash)
Inserts pkgfs boot arg into arguments map using system_image
hash.
pub fn new(args: HashMap<String, Option<String>>) -> Self
Sourcepub async fn handle_request_stream(
self: Arc<Self>,
stream: ArgumentsRequestStream,
)
pub async fn handle_request_stream( self: Arc<Self>, stream: ArgumentsRequestStream, )
Serves fuchsia.boot/Arguments requests on the given request stream.
Auto Trait Implementations§
impl Freeze for MockBootArgumentsService
impl RefUnwindSafe for MockBootArgumentsService
impl Send for MockBootArgumentsService
impl Sync for MockBootArgumentsService
impl Unpin for MockBootArgumentsService
impl UnwindSafe for MockBootArgumentsService
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