[][src]Struct parsec_interface::requests::request::RequestHeader

pub struct RequestHeader {
    pub provider: ProviderID,
    pub session: u64,
    pub content_type: BodyType,
    pub accept_type: BodyType,
    pub auth_type: AuthType,
    pub opcode: Opcode,
}

A native representation of the request header.

Fields that are not relevant for application development (e.g. magic number) are not copied across from the raw header.

Fields

provider: ProviderID

Provider ID value

session: u64

Session handle

content_type: BodyType

Content type: defines how the request body should be processed.

accept_type: BodyType

Accept type: defines how the service should provide its response.

auth_type: AuthType

Authentication type.

opcode: Opcode

Opcode of the operation to perform.

Trait Implementations

impl Clone for RequestHeader[src]

impl Copy for RequestHeader[src]

impl Debug for RequestHeader[src]

impl From<RequestHeader> for Raw[src]

Conversion from native to raw request header.

This is required in order to bring the contents of the header in a state which can be serialized.

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.

impl PartialEq<RequestHeader> for RequestHeader[src]

impl StructuralPartialEq for RequestHeader[src]

impl TryFrom<WireHeader> for RequestHeader[src]

Conversion from the raw to native request header.

This conversion must be done before a Request value can be populated.

type Error = ResponseStatus

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.