pub trait NodeControllerClientSender {
type Transport: Transport;
// Required methods
fn remove(&self) -> Result<SendFuture<'_, Self::Transport>, EncodeError>;
fn request_bind<___R>(
&self,
request: &mut ___R,
) -> Result<ResponseFuture<'_, Self::Transport, RequestBind>, EncodeError>
where ___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireNodeControllerRequestBindRequest>;
}
Expand description
A helper trait for the NodeController
client sender.
Required Associated Types§
Required Methods§
Sourcefn remove(&self) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
fn remove(&self) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
Removes the node and all of its children.
Sourcefn request_bind<___R>(
&self,
request: &mut ___R,
) -> Result<ResponseFuture<'_, Self::Transport, RequestBind>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireNodeControllerRequestBindRequest>,
fn request_bind<___R>(
&self,
request: &mut ___R,
) -> Result<ResponseFuture<'_, Self::Transport, RequestBind>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireNodeControllerRequestBindRequest>,
Request that the framework attempts to bind a driver to this node. This is an additional request for binding as the framework attempts to bind a node once when the node is created.
- error
ZX_ERR_ALREADY_BOUND
if the node is already bound andforce_rebind
is false. - error
ZX_ERR_ALREADY_EXISTS
if the node has an outstanding |RequestBind| call which has not completed.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<___T> NodeControllerClientSender for ClientSender<___T, NodeController>where
___T: Transport,
impl<___T> NodeControllerClientSender for ClientSender<___T, NodeController>where
___T: Transport,
Source§fn remove(&self) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
fn remove(&self) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
Removes the node and all of its children.
Source§fn request_bind<___R>(
&self,
request: &mut ___R,
) -> Result<ResponseFuture<'_, Self::Transport, RequestBind>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireNodeControllerRequestBindRequest>,
fn request_bind<___R>(
&self,
request: &mut ___R,
) -> Result<ResponseFuture<'_, Self::Transport, RequestBind>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireNodeControllerRequestBindRequest>,
Request that the framework attempts to bind a driver to this node. This is an additional request for binding as the framework attempts to bind a node once when the node is created.
- error
ZX_ERR_ALREADY_BOUND
if the node is already bound andforce_rebind
is false. - error
ZX_ERR_ALREADY_EXISTS
if the node has an outstanding |RequestBind| call which has not completed.