pub struct ComponentControllerOnEscrowRequest {
pub outgoing_dir: Option<ServerEnd<DirectoryMarker>>,
pub escrowed_dictionary: Option<DictionaryRef>,
pub escrowed_dictionary_handle: Option<EventPair>,
/* private fields */
}Fields§
§outgoing_dir: Option<ServerEnd<DirectoryMarker>>Escrow the outgoing directory server endpoint. Whenever the
component is started, the framework will return this channel via
[ComponentStartInfo.outgoing_dir].
escrowed_dictionary: Option<DictionaryRef>Escrow some user defined state. Whenever the component is started,
the framework will return these handles via
[ComponentStartInfo.escrowed_dictionary].
The framework will not wait for any signals on these objects.
§Example
Let’s say a component needs to escrow an event pair that represents
the result of some expensive calculation. It can create a
dictionary, put the event pair inside with an appropriate key
(e.g. "my_event_pair"), then check for that entry on startup.
Note that this is deprecated, please use
escrowed_dictionary_handle instead.
escrowed_dictionary_handle: Option<EventPair>Escrow some user defined state. Whenever the component is started,
the framework will return these handles via
[ComponentStartInfo.escrowed_dictionary].
The framework will not wait for any signals on these objects.
§Example
Let’s say a component needs to escrow an event pair that represents
the result of some expensive calculation. It can create a
dictionary, put the event pair inside with an appropriate key
(e.g. "my_event_pair"), then check for that entry on startup.
Trait Implementations§
Source§impl Decode<ComponentControllerOnEscrowRequest, DefaultFuchsiaResourceDialect> for ComponentControllerOnEscrowRequest
impl Decode<ComponentControllerOnEscrowRequest, DefaultFuchsiaResourceDialect> for ComponentControllerOnEscrowRequest
Source§impl Default for ComponentControllerOnEscrowRequest
impl Default for ComponentControllerOnEscrowRequest
Source§fn default() -> ComponentControllerOnEscrowRequest
fn default() -> ComponentControllerOnEscrowRequest
Source§impl Encode<ComponentControllerOnEscrowRequest, DefaultFuchsiaResourceDialect> for &mut ComponentControllerOnEscrowRequest
impl Encode<ComponentControllerOnEscrowRequest, DefaultFuchsiaResourceDialect> for &mut ComponentControllerOnEscrowRequest
Source§impl PartialEq for ComponentControllerOnEscrowRequest
impl PartialEq for ComponentControllerOnEscrowRequest
Source§fn eq(&self, other: &ComponentControllerOnEscrowRequest) -> bool
fn eq(&self, other: &ComponentControllerOnEscrowRequest) -> bool
self and other values to be equal, and is used by ==.Source§impl ResourceTypeMarker for ComponentControllerOnEscrowRequest
impl ResourceTypeMarker for ComponentControllerOnEscrowRequest
Source§type Borrowed<'a> = &'a mut ComponentControllerOnEscrowRequest
type Borrowed<'a> = &'a mut ComponentControllerOnEscrowRequest
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>
&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 ComponentControllerOnEscrowRequest
impl TypeMarker for ComponentControllerOnEscrowRequest
Source§type Owned = ComponentControllerOnEscrowRequest
type Owned = ComponentControllerOnEscrowRequest
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
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 moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
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.