pub struct Protocols {Show 15 fields
pub device: Option<ServerEnd<DeviceMarker>>,
pub device_extra: Option<ServerEnd<DeviceExtraMarker>>,
pub device_test: Option<ServerEnd<DeviceTestMarker>>,
pub device_route: Option<ServerEnd<DeviceRouteMarker>>,
pub device_route_extra: Option<ServerEnd<DeviceRouteExtraMarker>>,
pub counters: Option<ServerEnd<CountersMarker>>,
pub thread_legacy_joining: Option<ServerEnd<LegacyJoiningMarker>>,
pub thread_dataset: Option<ServerEnd<DatasetMarker>>,
pub energy_scan: Option<ServerEnd<EnergyScanMarker>>,
pub experimental_device: Option<ServerEnd<DeviceMarker>>,
pub experimental_device_extra: Option<ServerEnd<DeviceExtraMarker>>,
pub meshcop: Option<ServerEnd<MeshcopMarker>>,
pub telemetry_provider: Option<ServerEnd<TelemetryProviderMarker>>,
pub thread_feature: Option<ServerEnd<FeatureMarker>>,
pub capabilities: Option<ServerEnd<ThreadCapabilitiesMarker>>,
/* private fields */
}
Expand description
Table of protocol requests that is passed into Driver.GetProtocols()
.
Fields§
§device: Option<ServerEnd<DeviceMarker>>
§device_extra: Option<ServerEnd<DeviceExtraMarker>>
§device_test: Option<ServerEnd<DeviceTestMarker>>
§device_route: Option<ServerEnd<DeviceRouteMarker>>
§device_route_extra: Option<ServerEnd<DeviceRouteExtraMarker>>
§counters: Option<ServerEnd<CountersMarker>>
§thread_legacy_joining: Option<ServerEnd<LegacyJoiningMarker>>
§thread_dataset: Option<ServerEnd<DatasetMarker>>
§energy_scan: Option<ServerEnd<EnergyScanMarker>>
§experimental_device: Option<ServerEnd<DeviceMarker>>
§experimental_device_extra: Option<ServerEnd<DeviceExtraMarker>>
§meshcop: Option<ServerEnd<MeshcopMarker>>
§telemetry_provider: Option<ServerEnd<TelemetryProviderMarker>>
§thread_feature: Option<ServerEnd<FeatureMarker>>
§capabilities: Option<ServerEnd<ThreadCapabilitiesMarker>>
Trait Implementations§
Source§impl Decode<Protocols, DefaultFuchsiaResourceDialect> for Protocols
impl Decode<Protocols, DefaultFuchsiaResourceDialect> for Protocols
Source§impl ResourceTypeMarker for Protocols
impl ResourceTypeMarker for Protocols
Source§type Borrowed<'a> = &'a mut Protocols
type Borrowed<'a> = &'a mut Protocols
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 Protocols
impl TypeMarker for Protocols
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 Protocols
impl StructuralPartialEq for Protocols
Auto Trait Implementations§
impl Freeze for Protocols
impl RefUnwindSafe for Protocols
impl Send for Protocols
impl Sync for Protocols
impl Unpin for Protocols
impl UnwindSafe for Protocols
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