pub trait StreamOps:
PairSpec
+ OpenBi
+ OpenUni
+ AcceptBi
+ AcceptUni { }
Expand description
Base stream operations.
A blanket implementation for all the types that implement the required base stream APIs.
You might want to depend on this trait instead of the more
demaning crate::base::Session
in your libraries that only require
stream operations.
Also, consider depending on the individual stream APIs directly.
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.