pub struct AggregateSource {
pub dir_connector: Option<DirConnector>,
pub source_instance_filter: Option<Vec<String>>,
pub renamed_instances: Option<Vec<NameMapping>>,
/* private fields */
}Fields§
§dir_connector: Option<DirConnector>§source_instance_filter: Option<Vec<String>>(Optional) The list of allowlisted instances to be offered. Instances of the service not in this list will not be accessible by the target component. If this is not set that means all instances from the source service are offered.
renamed_instances: Option<Vec<NameMapping>>(Optional) The list of allowlisted instances to be offered, with renames.
If this is set and nonempty, the set of instances in the target service
will be restricted to the instances in this list, renaming source_name
to target_name.
If it is set and nonempty, source_instance_filter will further
restrict the set of instances to those whose target_name appears in
that list. There is generally no reason to set both, but we support it
for compatibility.
Trait Implementations§
Source§impl Debug for AggregateSource
impl Debug for AggregateSource
Source§impl Decode<AggregateSource, DefaultFuchsiaResourceDialect> for AggregateSource
impl Decode<AggregateSource, DefaultFuchsiaResourceDialect> for AggregateSource
Source§impl Default for AggregateSource
impl Default for AggregateSource
Source§fn default() -> AggregateSource
fn default() -> AggregateSource
Returns the “default value” for a type. Read more
Source§impl Encode<AggregateSource, DefaultFuchsiaResourceDialect> for &mut AggregateSource
impl Encode<AggregateSource, DefaultFuchsiaResourceDialect> for &mut AggregateSource
Source§impl PartialEq for AggregateSource
impl PartialEq for AggregateSource
Source§impl ResourceTypeMarker for AggregateSource
impl ResourceTypeMarker for AggregateSource
Source§type Borrowed<'a> = &'a mut AggregateSource
type Borrowed<'a> = &'a mut AggregateSource
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 AggregateSource
impl TypeMarker for AggregateSource
Source§type Owned = AggregateSource
type Owned = AggregateSource
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 AggregateSource
impl StructuralPartialEq for AggregateSource
Auto Trait Implementations§
impl Freeze for AggregateSource
impl RefUnwindSafe for AggregateSource
impl Send for AggregateSource
impl Sync for AggregateSource
impl Unpin for AggregateSource
impl UnwindSafe for AggregateSource
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