pub trait ClientStream:
Sized
+ Send
+ Sync {
// Required methods
fn request(&mut self, req: &[u8]) -> Result<Buffer, Error>;
fn connect<P>(path: P) -> Result<AgentClient<Self>, Error>
where P: AsRef<Path> + Send;
// Provided method
fn connect_env() -> Result<AgentClient<Self>, Error> { ... }
}
Required Methods§
Provided Methods§
fn connect_env() -> Result<AgentClient<Self>, Error>
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.