pub struct ComponentInput(/* private fields */);
Expand description
Implementations§
Source§impl ComponentInput
impl ComponentInput
pub fn new(environment: ComponentEnvironment) -> Self
Sourcepub fn shallow_copy(&self) -> Result<Self, ()>
pub fn shallow_copy(&self) -> Result<Self, ()>
Creates a new ComponentInput with entries cloned from this ComponentInput.
This is a shallow copy. Values are cloned, not copied, so are new references to the same underlying data.
Sourcepub fn capabilities(&self) -> Dict
pub fn capabilities(&self) -> Dict
Returns the sub-dictionary containing capabilities routed by the component’s parent.
Sourcepub fn environment(&self) -> ComponentEnvironment
pub fn environment(&self) -> ComponentEnvironment
Returns the sub-dictionary containing capabilities routed by the component’s environment.
pub fn insert_capability( &self, path: &impl IterablePath, capability: Capability, ) -> Result<(), CapabilityStoreError>
Trait Implementations§
Source§impl Clone for ComponentInput
impl Clone for ComponentInput
Source§fn clone(&self) -> ComponentInput
fn clone(&self) -> ComponentInput
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 ComponentInput
impl Debug for ComponentInput
Source§impl Default for ComponentInput
impl Default for ComponentInput
Source§impl From<ComponentInput> for Dict
impl From<ComponentInput> for Dict
Source§fn from(e: ComponentInput) -> Self
fn from(e: ComponentInput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ComponentInput
impl RefUnwindSafe for ComponentInput
impl Send for ComponentInput
impl Sync for ComponentInput
impl Unpin for ComponentInput
impl UnwindSafe for ComponentInput
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)