pub struct ComponentSandbox {
pub component_input: Option<DictionaryRef>,
pub component_output: Option<DictionaryRef>,
pub program_input: Option<DictionaryRef>,
pub program_output: Option<DictionaryRef>,
pub framework_output: Option<DictionaryRef>,
pub capability_sourced: Option<DictionaryRef>,
pub declared_dictionaries: Option<DictionaryRef>,
pub child_inputs: Option<Vec<ChildInput>>,
pub collection_inputs: Option<Vec<ChildInput>>,
/* private fields */
}
Expand description
A component’s sandbox, which holds all of the capabilities that a component has access to, can provide to the system, and makes available to its children.
Fields§
§component_input: Option<DictionaryRef>
§component_output: Option<DictionaryRef>
§program_input: Option<DictionaryRef>
§program_output: Option<DictionaryRef>
§framework_output: Option<DictionaryRef>
§capability_sourced: Option<DictionaryRef>
§declared_dictionaries: Option<DictionaryRef>
§child_inputs: Option<Vec<ChildInput>>
§collection_inputs: Option<Vec<ChildInput>>
Trait Implementations§
Source§impl Debug for ComponentSandbox
impl Debug for ComponentSandbox
Source§impl Decode<ComponentSandbox, DefaultFuchsiaResourceDialect> for ComponentSandbox
impl Decode<ComponentSandbox, DefaultFuchsiaResourceDialect> for ComponentSandbox
Source§impl Default for ComponentSandbox
impl Default for ComponentSandbox
Source§fn default() -> ComponentSandbox
fn default() -> ComponentSandbox
Returns the “default value” for a type. Read more
Source§impl Encode<ComponentSandbox, DefaultFuchsiaResourceDialect> for &mut ComponentSandbox
impl Encode<ComponentSandbox, DefaultFuchsiaResourceDialect> for &mut ComponentSandbox
Source§impl PartialEq for ComponentSandbox
impl PartialEq for ComponentSandbox
Source§impl ResourceTypeMarker for ComponentSandbox
impl ResourceTypeMarker for ComponentSandbox
Source§type Borrowed<'a> = &'a mut ComponentSandbox
type Borrowed<'a> = &'a mut ComponentSandbox
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moreSource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned,
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned, ) -> Self::Borrowed<'a>
Cheaply converts from
&mut Self::Owned
to Self::Borrowed
. For
HandleBased
types this is “take” (it returns an owned handle and
replaces value
with Handle::invalid
), and for all other types it is
“borrow” (just converts from one reference to another).Source§impl TypeMarker for ComponentSandbox
impl TypeMarker for ComponentSandbox
Source§type Owned = ComponentSandbox
type Owned = ComponentSandbox
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.impl Standalone<DefaultFuchsiaResourceDialect> for ComponentSandbox
impl StructuralPartialEq for ComponentSandbox
Auto Trait Implementations§
impl Freeze for ComponentSandbox
impl RefUnwindSafe for ComponentSandbox
impl Send for ComponentSandbox
impl Sync for ComponentSandbox
impl Unpin for ComponentSandbox
impl UnwindSafe for ComponentSandbox
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