Skip to main content

TransportHandle

Trait TransportHandle 

Source
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§

Source

fn stop_intake(&self)

Prevents admission of new transport requests.

Source

fn cancel_tasks(&self)

Requests cooperative cancellation of transport tasks.

Source

fn abort_tasks(&self)

Aborts transport tasks that remain live.

Source

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".

Implementors§