pub struct ProgramInput { /* private fields */ }Expand description
All capabilities that are available to a component’s program.
Implementations§
Source§impl ProgramInput
impl ProgramInput
pub fn new( namespace: Dictionary, runner: Option<Router<Connector>>, config: Dictionary, ) -> Self
Sourcepub fn namespace(&self) -> Dictionary
pub fn namespace(&self) -> Dictionary
All of the capabilities that appear in a program’s namespace.
Sourcepub fn numbered_handles(&self) -> Dictionary
pub fn numbered_handles(&self) -> Dictionary
All of the capabilities that appear in a program’s set of numbered handles.
Sourcepub fn runner(&self) -> Option<Router<Connector>>
pub fn runner(&self) -> Option<Router<Connector>>
A router for the runner that a component has used (if any).
Sourcepub fn config(&self) -> Dictionary
pub fn config(&self) -> Dictionary
All of the config capabilities that a program will use.
Trait Implementations§
Source§impl Clone for ProgramInput
impl Clone for ProgramInput
Source§fn clone(&self) -> ProgramInput
fn clone(&self) -> ProgramInput
Returns a duplicate 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 ProgramInput
impl Debug for ProgramInput
Source§impl Default for ProgramInput
impl Default for ProgramInput
Source§impl From<ProgramInput> for Dictionary
impl From<ProgramInput> for Dictionary
Source§fn from(program_input: ProgramInput) -> Self
fn from(program_input: ProgramInput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProgramInput
impl !RefUnwindSafe for ProgramInput
impl Send for ProgramInput
impl Sync for ProgramInput
impl Unpin for ProgramInput
impl UnsafeUnpin for ProgramInput
impl !UnwindSafe for ProgramInput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more