pub struct DeprecatedRouteRequest {
pub target: Option<WeakInstanceToken>,
pub metadata: Option<ClientEnd<DictionaryMarker>>,
/* private fields */
}Expand description
Contains metadata on how to route a capability, and a token representing the component that started the route.
The contents of metadata are data capabilities used by component manager
to track things like the type of the route (e.g. protocol, storage, runner,
…), the rights on a directory route, and the scope on an event stream
route. Generally an empty dictionary is safe to pass to component manager.
Either both fields must be set, or neither.
Fields§
§target: Option<WeakInstanceToken>§metadata: Option<ClientEnd<DictionaryMarker>>Trait Implementations§
Source§impl Debug for DeprecatedRouteRequest
impl Debug for DeprecatedRouteRequest
Source§impl Decode<DeprecatedRouteRequest, DefaultFuchsiaResourceDialect> for DeprecatedRouteRequest
impl Decode<DeprecatedRouteRequest, DefaultFuchsiaResourceDialect> for DeprecatedRouteRequest
Source§impl Default for DeprecatedRouteRequest
impl Default for DeprecatedRouteRequest
Source§fn default() -> DeprecatedRouteRequest
fn default() -> DeprecatedRouteRequest
Returns the “default value” for a type. Read more
Source§impl Encode<DeprecatedRouteRequest, DefaultFuchsiaResourceDialect> for &mut DeprecatedRouteRequest
impl Encode<DeprecatedRouteRequest, DefaultFuchsiaResourceDialect> for &mut DeprecatedRouteRequest
Source§impl PartialEq for DeprecatedRouteRequest
impl PartialEq for DeprecatedRouteRequest
Source§impl ResourceTypeMarker for DeprecatedRouteRequest
impl ResourceTypeMarker for DeprecatedRouteRequest
Source§type Borrowed<'a> = &'a mut DeprecatedRouteRequest
type Borrowed<'a> = &'a mut DeprecatedRouteRequest
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 DeprecatedRouteRequest
impl TypeMarker for DeprecatedRouteRequest
Source§type Owned = DeprecatedRouteRequest
type Owned = DeprecatedRouteRequest
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.Source§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 moreSource§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 DeprecatedRouteRequest
impl StructuralPartialEq for DeprecatedRouteRequest
Auto Trait Implementations§
impl Freeze for DeprecatedRouteRequest
impl RefUnwindSafe for DeprecatedRouteRequest
impl Send for DeprecatedRouteRequest
impl Sync for DeprecatedRouteRequest
impl Unpin for DeprecatedRouteRequest
impl UnwindSafe for DeprecatedRouteRequest
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