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<___H, ___T> ClientProtocol<___H, ___T> for Binderwhere
___H: BinderClientHandler<___T> + Send,
___T: Transport,
impl<___H, ___T> ClientProtocol<___H, ___T> for Binderwhere
___H: BinderClientHandler<___T> + Send,
___T: Transport,
Source§impl Discoverable for Binder
impl Discoverable for Binder
Source§const PROTOCOL_NAME: &'static str = "fuchsia.component.Binder"
const PROTOCOL_NAME: &'static str = "fuchsia.component.Binder"
The service name to use to connect to this discoverable protocol.
Source§impl From<Binder> for BinderMarker
impl From<Binder> for BinderMarker
Source§impl<___T> Protocol<___T> for Binderwhere
___T: Transport,
impl<___T> Protocol<___T> for Binderwhere
___T: Transport,
Source§type ClientSender = BinderClientSender<___T>
type ClientSender = BinderClientSender<___T>
The client sender for the protocol. It must be a
#[repr(transparent)]
wrapper around
ClientSender<T>
.Source§type ServerSender = BinderServerSender<___T>
type ServerSender = BinderServerSender<___T>
The server sender for the protocol. It must be a
#[repr(transparent)]
wrapper around
ServerSender<T>
.Source§impl<___H, ___T> ServerProtocol<___H, ___T> for Binderwhere
___H: BinderServerHandler<___T> + Send,
___T: Transport,
impl<___H, ___T> ServerProtocol<___H, ___T> for Binderwhere
___H: BinderServerHandler<___T> + Send,
___T: Transport,
Source§async fn on_one_way(
handler: &mut ___H,
sender: &ServerSender<Self, ___T>,
ordinal: u64,
buffer: ___T::RecvBuffer,
)
async fn on_one_way( handler: &mut ___H, sender: &ServerSender<Self, ___T>, ordinal: u64, buffer: ___T::RecvBuffer, )
Handles a received server one-way message with the given handler.
Source§async fn on_two_way(
handler: &mut ___H,
sender: &ServerSender<Self, ___T>,
ordinal: u64,
buffer: ___T::RecvBuffer,
responder: Responder,
)
async fn on_two_way( handler: &mut ___H, sender: &ServerSender<Self, ___T>, ordinal: u64, buffer: ___T::RecvBuffer, responder: Responder, )
Handles a received server two-way message with the given handler.
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