pub struct ResponseMetadata {
pub status: Status,
pub version: Option<Version>,
pub fields: Fields,
pub content_length: Option<u64>,
pub persistent: Option<bool>,
pub protocol: Option<Protocol>,
}Expand description
Informational and final responses share the same metadata. Protocol/responder capabilities sequence heads; upgrades and CONNECT use bidirectional bodies, with resource lifecycle retained by the exchange/driver.
Fields§
§status: Status§version: Option<Version>§fields: Fields§content_length: Option<u64>Declared representation length, independent of whether this message has readable data (for example HEAD and 304 responses).
persistent: Option<bool>Outgoing connection reuse preference. Received hop-specific decisions are retained by the protocol exchange, rather than forwarded as fields.
protocol: Option<Protocol>Implementations§
Trait Implementations§
Source§impl Clone for ResponseMetadata
impl Clone for ResponseMetadata
Auto Trait Implementations§
impl Freeze for ResponseMetadata
impl RefUnwindSafe for ResponseMetadata
impl Send for ResponseMetadata
impl Sync for ResponseMetadata
impl Unpin for ResponseMetadata
impl UnsafeUnpin for ResponseMetadata
impl UnwindSafe for ResponseMetadata
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