[−][src]Struct parsec_interface::requests::response::ResponseHeader
A native representation of the response header.
Fields that are not relevant for application development (e.g. magic number) are not copied across from the raw header.
Fields
provider: ProviderIDProvider ID value
session: u64Session handle
content_type: BodyTypeContent type: defines how the request body should be processed.
opcode: OpcodeOpcode of the operation to perform.
status: ResponseStatusResponse status of the request.
Trait Implementations
impl Clone for ResponseHeader[src]
fn clone(&self) -> ResponseHeader[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for ResponseHeader[src]
impl Debug for ResponseHeader[src]
impl From<RequestHeader> for ResponseHeader[src]
Conversion from RequestHeader to ResponseHeader is useful for
when reversing data flow, from handling a request to handling a response.
fn from(req_hdr: RequestHeader) -> ResponseHeader[src]
impl From<ResponseHeader> for Raw[src]
Conversion from native to raw response header.
This is required in order to bring the contents of the header in a state which can be serialized.
fn from(header: ResponseHeader) -> Self[src]
impl PartialEq<ResponseHeader> for ResponseHeader[src]
fn eq(&self, other: &ResponseHeader) -> bool[src]
fn ne(&self, other: &ResponseHeader) -> bool[src]
impl StructuralPartialEq for ResponseHeader[src]
impl TryFrom<WireHeader> for ResponseHeader[src]
Conversion from the raw to native response header.
This conversion must be done before a Response value can be populated.
type Error = ResponseStatus
The type returned in the event of a conversion error.
fn try_from(header: Raw) -> Result<ResponseHeader>[src]
Auto Trait Implementations
impl RefUnwindSafe for ResponseHeader
impl Send for ResponseHeader
impl Sync for ResponseHeader
impl Unpin for ResponseHeader
impl UnwindSafe for ResponseHeader
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,