pub struct ComponentControllerOnEscrowRequest {
pub outgoing_dir: Option<ServerEnd<DirectoryMarker>>,
pub escrowed_dictionary: Option<DictionaryRef>,
/* 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.
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
Returns the “default value” for a type. Read more
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
Tests for
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
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 ComponentControllerOnEscrowRequest
impl TypeMarker for ComponentControllerOnEscrowRequest
Source§type Owned = ComponentControllerOnEscrowRequest
type Owned = ComponentControllerOnEscrowRequest
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 ComponentControllerOnEscrowRequest
impl StructuralPartialEq for ComponentControllerOnEscrowRequest
Auto Trait Implementations§
impl Freeze for ComponentControllerOnEscrowRequest
impl RefUnwindSafe for ComponentControllerOnEscrowRequest
impl Send for ComponentControllerOnEscrowRequest
impl Sync for ComponentControllerOnEscrowRequest
impl Unpin for ComponentControllerOnEscrowRequest
impl UnwindSafe for ComponentControllerOnEscrowRequest
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