pub trait ConnectRequest {
// Required methods
fn connect_protocol_version(&self) -> Option<&str>;
fn scheme(&self) -> Option<&Scheme>;
fn authority(&self) -> Option<&Authority>;
fn path(&self) -> &str;
fn message_codec(&self) -> Result<&str, Error>;
fn timeout(&self) -> Option<Duration>;
fn content_encoding(&self) -> Option<&str>;
fn accept_encoding(&self) -> impl Iterator<Item = &str>;
fn metadata(&self) -> &impl Metadata;
fn validate(&self) -> Result<(), Error>;
// Provided method
fn protobuf_rpc_parts(&self) -> Option<(&str, &str, &str)> { ... }
}Expand description
A Connect request.
Required Methods§
Sourcefn connect_protocol_version(&self) -> Option<&str>
fn connect_protocol_version(&self) -> Option<&str>
Returns the connect protocol version.
Returns the URI authority.
Sourcefn message_codec(&self) -> Result<&str, Error>
fn message_codec(&self) -> Result<&str, Error>
Returns the message codec.
Sourcefn content_encoding(&self) -> Option<&str>
fn content_encoding(&self) -> Option<&str>
Returns the content encoding (e.g. compression).
Sourcefn accept_encoding(&self) -> impl Iterator<Item = &str>
fn accept_encoding(&self) -> impl Iterator<Item = &str>
Returns the accept encoding(s).
Provided 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.