pub trait TransportHandle:
Send
+ Sync
+ 'static {
// Required methods
fn stop_intake(&self);
fn cancel_tasks(&self);
fn abort_tasks(&self);
fn join_tasks(self: Box<Self>) -> TransportJoinFuture;
}Expand description
Synchronous lifecycle controls; dropping a handle has no defined behavior.
Required Methods§
Sourcefn stop_intake(&self)
fn stop_intake(&self)
Prevents admission of new transport requests.
Sourcefn cancel_tasks(&self)
fn cancel_tasks(&self)
Requests cooperative cancellation of transport tasks.
Sourcefn abort_tasks(&self)
fn abort_tasks(&self)
Aborts transport tasks that remain live.
Sourcefn join_tasks(self: Box<Self>) -> TransportJoinFuture
fn join_tasks(self: Box<Self>) -> TransportJoinFuture
Consumes the handle and joins every transport-owned task.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".