pub trait BlockingSocketFactory: BlockingSocket + Sized {
// Required method
fn new() -> Result<Self, SocketError>;
}Expand description
Factory for unbound sockets used by crate::HttpClient.
Outside BlockingSocket: methods returning Self break object safety.
Required Methods§
Sourcefn new() -> Result<Self, SocketError>
fn new() -> Result<Self, SocketError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".