pub struct UnaryRequest<T>(/* private fields */);Expand description
A Connect unary request.
Trait Implementations§
Source§impl<T> From<Request<T>> for UnaryRequest<T>
impl<T> From<Request<T>> for UnaryRequest<T>
Source§impl<T> From<UnaryRequest<T>> for Request<T>
impl<T> From<UnaryRequest<T>> for Request<T>
Source§fn from(req: UnaryRequest<T>) -> Self
fn from(req: UnaryRequest<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> !Freeze for UnaryRequest<T>
impl<T> !RefUnwindSafe for UnaryRequest<T>
impl<T> Send for UnaryRequest<T>where
T: Send,
impl<T> Sync for UnaryRequest<T>where
T: Sync,
impl<T> Unpin for UnaryRequest<T>where
T: Unpin,
impl<T> !UnwindSafe for UnaryRequest<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ConnectRequest for Twhere
T: HttpConnectRequest,
impl<T> ConnectRequest for Twhere
T: HttpConnectRequest,
Source§fn connect_protocol_version(&self) -> Option<&str>
fn connect_protocol_version(&self) -> Option<&str>
Returns the connect protocol version.
Returns the URI authority.
Source§fn content_encoding(&self) -> Option<&str>
fn content_encoding(&self) -> Option<&str>
Returns the content encoding (e.g. compression).
Source§fn accept_encoding(&self) -> impl Iterator<Item = &str>
fn accept_encoding(&self) -> impl Iterator<Item = &str>
Returns the accept encoding(s).