pub struct Instance;Expand description
The type corresponding to the Instance protocol. Manages a single instance of a canvas. Each session of this protocol is responsible for a new canvas.
Trait Implementations§
Source§impl ClientCompatFrom<InstanceProxy> for Instance
Available on Fuchsia only.
impl ClientCompatFrom<InstanceProxy> for Instance
Available on Fuchsia only.
Source§fn client_compat_from(proxy: InstanceProxy) -> ClientDispatcher<Self, Channel>
fn client_compat_from(proxy: InstanceProxy) -> ClientDispatcher<Self, Channel>
Converts
proxy into a Client for this protocol.Source§impl CompatFrom<Instance> for InstanceMarker
impl CompatFrom<Instance> for InstanceMarker
Source§fn compat_from(_: Instance) -> Self
fn compat_from(_: Instance) -> Self
Converts
value into a value of this type.Source§impl CompatFrom<InstanceMarker> for Instance
impl CompatFrom<InstanceMarker> for Instance
Source§fn compat_from(_: InstanceMarker) -> Self
fn compat_from(_: InstanceMarker) -> Self
Converts
value into a value of this type.Source§impl Discoverable for Instance
impl Discoverable for Instance
Source§const PROTOCOL_NAME: &'static str = "examples.canvas.clientrequesteddraw.Instance"
const PROTOCOL_NAME: &'static str = "examples.canvas.clientrequesteddraw.Instance"
The service name to use to connect to this discoverable protocol.
Source§impl<___H, ___T> DispatchClientMessage<___H, ___T> for Instancewhere
___H: InstanceClientHandler<___T> + Send,
___T: Transport,
for<'de> BoundingBox: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
impl<___H, ___T> DispatchClientMessage<___H, ___T> for Instancewhere
___H: InstanceClientHandler<___T> + Send,
___T: Transport,
for<'de> BoundingBox: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
Source§impl<___H, ___T> DispatchServerMessage<___H, ___T> for Instancewhere
___H: InstanceServerHandler<___T> + Send,
___T: Transport,
for<'de> InstanceAddLinesRequest<'de>: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
impl<___H, ___T> DispatchServerMessage<___H, ___T> for Instancewhere
___H: InstanceServerHandler<___T> + Send,
___T: Transport,
for<'de> InstanceAddLinesRequest<'de>: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
impl StructuralPartialEq for Instance
Auto Trait Implementations§
impl Freeze for Instance
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnsafeUnpin for Instance
impl UnwindSafe for Instance
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]