pub struct Binder;
Expand description
The type corresponding to the Binder protocol. A framework-provided protocol that allows components that use it to bind to the component that exposes it. The act of connecting to this protocol will trigger the bind. Thus, this protocol contains no methods. For more details on binding, see https://fuchsia.dev/fuchsia-src/concepts/components/v2/lifecycle#binding.
When a component connects to protocol, the component exposing this capability will be started if it’s not already running. Upon a failure to start, the component framework will close the server end of the channel with a zx.Status epitaph.
Trait Implementations§
Source§impl<___T, ___H> ClientProtocol<___T, ___H> for Binderwhere
___T: Transport,
___H: BinderClientHandler<___T>,
impl<___T, ___H> ClientProtocol<___T, ___H> for Binderwhere
___T: Transport,
___H: BinderClientHandler<___T>,
Source§impl Discoverable for Binder
impl Discoverable for Binder
Source§const PROTOCOL_NAME: &'static str = "binder"
const PROTOCOL_NAME: &'static str = "binder"
The service name to use to connect to this discoverable protocol.
Source§impl<___T, ___H> ServerProtocol<___T, ___H> for Binderwhere
___T: Transport,
___H: BinderServerHandler<___T>,
impl<___T, ___H> ServerProtocol<___T, ___H> for Binderwhere
___T: Transport,
___H: BinderServerHandler<___T>,
Source§fn on_one_way(
handler: &mut ___H,
sender: &ServerSender<___T, Self>,
ordinal: u64,
buffer: ___T::RecvBuffer,
)
fn on_one_way( handler: &mut ___H, sender: &ServerSender<___T, Self>, ordinal: u64, buffer: ___T::RecvBuffer, )
Handles a received server one-way message with the given handler.
Source§fn on_two_way(
handler: &mut ___H,
sender: &ServerSender<___T, Self>,
ordinal: u64,
buffer: ___T::RecvBuffer,
responder: Responder,
)
fn on_two_way( handler: &mut ___H, sender: &ServerSender<___T, Self>, ordinal: u64, buffer: ___T::RecvBuffer, responder: Responder, )
Handles a received server two-way message with the given handler.
Source§impl TakeFrom<Binder> for BinderMarker
impl TakeFrom<Binder> for BinderMarker
Auto Trait Implementations§
impl Freeze for Binder
impl RefUnwindSafe for Binder
impl Send for Binder
impl Sync for Binder
impl Unpin for Binder
impl UnwindSafe for Binder
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