#[non_exhaustive]pub struct Parts {
pub method: Method,
pub uri: Uri,
pub version: Version,
pub headers: HeaderMap,
pub extensions: Extensions,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.method: MethodThe request’s method
uri: UriThe request’s URI
version: VersionThe request’s version
headers: HeaderMapThe request’s headers
extensions: ExtensionsThe request’s extensions
Trait Implementations§
Source§impl AuthorityInputExt for Parts
impl AuthorityInputExt for Parts
Source§impl ExtensionsRef for Parts
impl ExtensionsRef for Parts
Source§fn extensions(&self) -> &Extensions
fn extensions(&self) -> &Extensions
Get reference to the underlying
Extensions storeSource§impl HttpRequestParts for Parts
impl HttpRequestParts for Parts
Source§impl HttpRequestPartsMut for Parts
impl HttpRequestPartsMut for Parts
Source§impl HttpVersionInputExt for Parts
impl HttpVersionInputExt for Parts
Source§fn http_version(&self) -> Option<Version>
fn http_version(&self) -> Option<Version>
The HTTP version, or
None for non-HTTP inputs.Source§impl PathInputExt for Parts
impl PathInputExt for Parts
Source§impl ProtocolInputExt for Parts
impl ProtocolInputExt for Parts
Source§impl TransportProtocolInputExt for Parts
impl TransportProtocolInputExt for Parts
Source§fn transport_protocol(&self) -> Option<TransportProtocol>
fn transport_protocol(&self) -> Option<TransportProtocol>
The transport protocol (TCP or UDP).
Source§impl TryIntoHyperiumHttp for Parts
impl TryIntoHyperiumHttp for Parts
Auto Trait Implementations§
impl Freeze for Parts
impl RefUnwindSafe for Parts
impl Send for Parts
impl Sync for Parts
impl Unpin for Parts
impl UnsafeUnpin for Parts
impl UnwindSafe for Parts
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ConnectorTargetInputExt for T
impl<T> ConnectorTargetInputExt for T
Source§fn connector_target(&self) -> Option<HostWithPort>
fn connector_target(&self) -> Option<HostWithPort>
The
host:port to connect to: the authority’s port if set, else the
protocol’s default port. None when no host (or no port) resolves. Read moreSource§fn connector_target_with_default_port(
&self,
default_port: u16,
) -> Option<HostWithPort>
fn connector_target_with_default_port( &self, default_port: u16, ) -> Option<HostWithPort>
Like
connector_target but with default_port as
the ultimate fallback (ConnectorTarget → authority port → protocol default → default_port),
so it yields Some whenever an authority resolves at all. Read moreSource§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more