pub trait Stream: Sized + StreamRequirements {
type Options: Default + Debug + Send + Sync;
const SECURE: bool;
// Required method
async fn connect(data: &Self::Options) -> Result<Self, Error>;
}
Required Associated Constants§
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.