Struct fidl_fuchsia_boot::ArgumentsProxy
source · pub struct ArgumentsProxy { /* private fields */ }
Implementations§
source§impl ArgumentsProxy
impl ArgumentsProxy
sourcepub fn take_event_stream(&self) -> ArgumentsEventStream
pub fn take_event_stream(&self) -> ArgumentsEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn get_string(&self, key: &str) -> QueryResponseFut<Option<String>>
pub fn get_string(&self, key: &str) -> QueryResponseFut<Option<String>>
Get the value of a boot argument key
.
sourcepub fn get_strings(
&self,
keys: &[String]
) -> QueryResponseFut<Vec<Option<String>>>
pub fn get_strings( &self, keys: &[String] ) -> QueryResponseFut<Vec<Option<String>>>
Get the values of a list of arguments specified in keys
.
sourcepub fn get_bool(&self, key: &str, defaultval: bool) -> QueryResponseFut<bool>
pub fn get_bool(&self, key: &str, defaultval: bool) -> QueryResponseFut<bool>
Get the boolean value of a boot argument keys
,
or return defaultval
if the argument is not present.
A key is considered to be false if its string value is exactly
“off”, “0”, or “false”. Any other value (including empty) is returned
as true.
Trait Implementations§
source§impl ArgumentsProxyInterface for ArgumentsProxy
impl ArgumentsProxyInterface for ArgumentsProxy
type GetStringResponseFut = QueryResponseFut<Option<String>>
fn get_string(&self, key: &str) -> Self::GetStringResponseFut
type GetStringsResponseFut = QueryResponseFut<Vec<Option<String>>>
fn get_strings(&self, keys: &[String]) -> Self::GetStringsResponseFut
type GetBoolResponseFut = QueryResponseFut<bool>
fn get_bool(&self, key: &str, defaultval: bool) -> Self::GetBoolResponseFut
type GetBoolsResponseFut = QueryResponseFut<Vec<bool>>
fn get_bools(&self, keys: &[BoolPair]) -> Self::GetBoolsResponseFut
type CollectResponseFut = QueryResponseFut<Vec<String>>
fn collect(&self, prefix: &str) -> Self::CollectResponseFut
source§impl Clone for ArgumentsProxy
impl Clone for ArgumentsProxy
source§fn clone(&self) -> ArgumentsProxy
fn clone(&self) -> ArgumentsProxy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ArgumentsProxy
impl Debug for ArgumentsProxy
source§impl Proxy for ArgumentsProxy
impl Proxy for ArgumentsProxy
§type Protocol = ArgumentsMarker
type Protocol = ArgumentsMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Attempt to convert the proxy back into a client end. Read more
Auto Trait Implementations§
impl Freeze for ArgumentsProxy
impl !RefUnwindSafe for ArgumentsProxy
impl Send for ArgumentsProxy
impl Sync for ArgumentsProxy
impl Unpin for ArgumentsProxy
impl !UnwindSafe for ArgumentsProxy
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