pub(super) trait ClientInput: Send + 'static {
// Required method
fn next(&mut self) -> impl Future<Output = Option<ClientEvent>> + Send;
// Provided methods
fn answer_close(&mut self) -> impl Future<Output = ()> + Send { ... }
fn drain(self, output: Output) -> impl Future<Output = ()> + Send
where Self: Sized { ... }
}Expand description
The input of a client.
Required Methods§
Provided Methods§
Sourcefn answer_close(&mut self) -> impl Future<Output = ()> + Send
fn answer_close(&mut self) -> impl Future<Output = ()> + Send
Answer the clean close of the client, see web::answer_close.
Sourcefn drain(self, output: Output) -> impl Future<Output = ()> + Sendwhere
Self: Sized,
fn drain(self, output: Output) -> impl Future<Output = ()> + Sendwhere
Self: Sized,
End the connection once output closed it after
ClientEvent::TooLarge, see web::drain.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".