pub struct Device;Expand description
The type corresponding to the Device protocol. Low-level protocol for i2c drivers.
Trait Implementations§
Source§impl CompatFrom<Device> for DeviceMarker
Available on crate feature driver only.
impl CompatFrom<Device> for DeviceMarker
Available on crate feature
driver only.Source§fn compat_from(_: Device) -> Self
fn compat_from(_: Device) -> Self
Converts
value into a value of this type.Source§impl CompatFrom<DeviceMarker> for Device
Available on crate feature driver only.
impl CompatFrom<DeviceMarker> for Device
Available on crate feature
driver only.Source§fn compat_from(_: DeviceMarker) -> Self
fn compat_from(_: DeviceMarker) -> Self
Converts
value into a value of this type.Source§impl Discoverable for Device
impl Discoverable for Device
Source§const PROTOCOL_NAME: &'static str = "fuchsia.hardware.i2cimpl.Device"
const PROTOCOL_NAME: &'static str = "fuchsia.hardware.i2cimpl.Device"
The service name to use to connect to this discoverable protocol.
Source§impl<___H, ___T> DispatchClientMessage<___H, ___T> for Devicewhere
___H: DeviceClientHandler<___T> + Send,
___T: Transport,
impl<___H, ___T> DispatchClientMessage<___H, ___T> for Devicewhere
___H: DeviceClientHandler<___T> + Send,
___T: Transport,
Source§impl<___H, ___T> DispatchServerMessage<___H, ___T> for Devicewhere
___H: DeviceServerHandler<___T> + Send,
___T: Transport,
for<'de> DeviceSetBitrateRequest: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
for<'de> DeviceTransactRequest<'de>: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
impl<___H, ___T> DispatchServerMessage<___H, ___T> for Devicewhere
___H: DeviceServerHandler<___T> + Send,
___T: Transport,
for<'de> DeviceSetBitrateRequest: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
for<'de> DeviceTransactRequest<'de>: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
Source§impl HasTransport for Device
Available on crate feature driver only.
impl HasTransport for Device
Available on crate feature
driver only.Source§type Transport = DriverChannel
type Transport = DriverChannel
The default transport type for this protocol.
impl StructuralPartialEq for Device
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnsafeUnpin for Device
impl UnwindSafe for Device
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]