pub trait ConnectorClientSender {
type Transport: Transport;
// Required method
fn connect<___R>(
&self,
request: &mut ___R,
) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
where ___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireConnectorConnectRequest>;
}
Expand description
A helper trait for the Connector
client sender.
Required Associated Types§
Required Methods§
Sourcefn connect<___R>(
&self,
request: &mut ___R,
) -> Result<SendFuture<'_, Self::Transport>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireConnectorConnectRequest>,
fn connect<___R>(
&self,
request: &mut ___R,
) -> Result<SendFuture<'_, Self::Transport>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireConnectorConnectRequest>,
Forward a server end of a protocol so that it can be connected.
- request
server
the server end of the protocol to be served. The FIDL protocol that this speaks is determined out-of-band.
- response This function has no response. The function is one-way to match the pipelining behaviors of other virtual filesystems.
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> ConnectorClientSender for ClientSender<___T, Connector>where
___T: Transport,
impl<___T> ConnectorClientSender for ClientSender<___T, Connector>where
___T: Transport,
Source§fn connect<___R>(
&self,
request: &mut ___R,
) -> Result<SendFuture<'_, Self::Transport>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireConnectorConnectRequest>,
fn connect<___R>(
&self,
request: &mut ___R,
) -> Result<SendFuture<'_, Self::Transport>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireConnectorConnectRequest>,
Forward a server end of a protocol so that it can be connected.
- request
server
the server end of the protocol to be served. The FIDL protocol that this speaks is determined out-of-band.
- response This function has no response. The function is one-way to match the pipelining behaviors of other virtual filesystems.