pub trait Retainable: Send + Sync {
// Required methods
fn retain(&self, close: Box<dyn FnOnce() + Send>) -> bool;
fn end(&self);
}Expand description
A Home pick a pooled upstream socket can keep beyond the turn (Go
ExecutionLifecycle with Retain).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".