[][src]Struct actori_framed::FramedRequest

pub struct FramedRequest<Io, S = ()> { /* fields omitted */ }

Methods

impl<Io, S> FramedRequest<Io, S>[src]

pub fn new(
    req: Request,
    framed: Framed<Io, Codec>,
    path: Path<Url>,
    state: State<S>
) -> Self
[src]

impl<Io, S> FramedRequest<Io, S>[src]

pub fn into_parts(self) -> (Request, Framed<Io, Codec>, State<S>)[src]

Split request into a parts

pub fn head(&self) -> &RequestHead[src]

This method returns reference to the request head

pub fn head_mut(&mut self) -> &mut RequestHead[src]

This method returns muttable reference to the request head. panics if multiple references of http request exists.

pub fn state(&self) -> &S[src]

Shared application state

pub fn uri(&self) -> &Uri[src]

Request's uri.

pub fn method(&self) -> &Method[src]

Read the Request method.

pub fn version(&self) -> Version[src]

Read the Request Version.

pub fn headers(&self) -> &HeaderMap[src]

Returns request's headers.

pub fn path(&self) -> &str[src]

The target path of this Request.

pub fn query_string(&self) -> &str[src]

The query string in the URL.

E.g., id=10

pub fn match_info(&self) -> &Path<Url>[src]

Get a reference to the Path parameters.

Params is a container for url parameters. A variable segment is specified in the form {identifier}, where the identifier can be used later in a request handler to access the matched value for that segment.

pub fn extensions(&self) -> Ref<Extensions>[src]

Request extensions

pub fn extensions_mut(&self) -> RefMut<Extensions>[src]

Mutable reference to a the request's extensions

Auto Trait Implementations

impl<Io, S = ()> !RefUnwindSafe for FramedRequest<Io, S>

impl<Io, S = ()> !Send for FramedRequest<Io, S>

impl<Io, S = ()> !Sync for FramedRequest<Io, S>

impl<Io, S> Unpin for FramedRequest<Io, S>

impl<Io, S = ()> !UnwindSafe for FramedRequest<Io, S>

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> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,