[][src]Struct sozu_lib::http::Session

pub struct Session {
    pub app_id: Option<String>,
    pub listen_token: Token,
    // some fields omitted
}

Fields

app_id: Option<String>listen_token: Token

Implementations

impl Session[src]

pub fn new(
    sock: TcpStream,
    token: Token,
    pool: Weak<RefCell<Pool<Buffer>>>,
    public_address: SocketAddr,
    expect_proxy: bool,
    sticky_name: String,
    timeout: Timeout,
    answers: Rc<RefCell<HttpAnswers>>,
    listen_token: Token,
    delay: Duration
) -> Option<Session>
[src]

pub fn upgrade(&mut self) -> bool[src]

pub fn set_answer(&mut self, answer: DefaultAnswerStatus, buf: Rc<Vec<u8>>)[src]

pub fn http(&self) -> Option<&Http<TcpStream>>[src]

pub fn http_mut(&mut self) -> Option<&mut Http<TcpStream>>[src]

Trait Implementations

impl ProxyConfiguration<Session> for Proxy[src]

impl ProxySession for Session[src]

impl ProxySessionCast for Session[src]

Auto Trait Implementations

impl !RefUnwindSafe for Session

impl !Send for Session

impl !Sync for Session

impl Unpin for Session

impl !UnwindSafe for Session

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>,