[][src]Struct nginx::ngx_peer_connection_s

#[repr(C)]pub struct ngx_peer_connection_s {
    pub connection: *mut ngx_connection_t,
    pub sockaddr: *mut sockaddr,
    pub socklen: socklen_t,
    pub name: *mut ngx_str_t,
    pub tries: ngx_uint_t,
    pub start_time: ngx_msec_t,
    pub get: ngx_event_get_peer_pt,
    pub free: ngx_event_free_peer_pt,
    pub notify: ngx_event_notify_peer_pt,
    pub data: *mut c_void,
    pub set_session: ngx_event_set_peer_session_pt,
    pub save_session: ngx_event_save_peer_session_pt,
    pub local: *mut ngx_addr_t,
    pub type_: c_int,
    pub rcvbuf: c_int,
    pub log: *mut ngx_log_t,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub spare: [u64; 2],
}

Fields

connection: *mut ngx_connection_tsockaddr: *mut sockaddrsocklen: socklen_tname: *mut ngx_str_ttries: ngx_uint_tstart_time: ngx_msec_tget: ngx_event_get_peer_ptfree: ngx_event_free_peer_ptnotify: ngx_event_notify_peer_ptdata: *mut c_voidset_session: ngx_event_set_peer_session_ptsave_session: ngx_event_save_peer_session_ptlocal: *mut ngx_addr_ttype_: c_intrcvbuf: c_intlog: *mut ngx_log_t_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>spare: [u64; 2]

Implementations

impl ngx_peer_connection_s[src]

pub fn cached(&self) -> c_uint[src]

pub fn set_cached(&mut self, val: c_uint)[src]

pub fn transparent(&self) -> c_uint[src]

pub fn set_transparent(&mut self, val: c_uint)[src]

pub fn so_keepalive(&self) -> c_uint[src]

pub fn set_so_keepalive(&mut self, val: c_uint)[src]

pub fn down(&self) -> c_uint[src]

pub fn set_down(&mut self, val: c_uint)[src]

pub fn log_error(&self) -> c_uint[src]

pub fn set_log_error(&mut self, val: c_uint)[src]

pub fn new_bitfield_1(
    cached: c_uint,
    transparent: c_uint,
    so_keepalive: c_uint,
    down: c_uint,
    log_error: c_uint
) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]

Trait Implementations

impl Clone for ngx_peer_connection_s[src]

impl Copy for ngx_peer_connection_s[src]

impl Debug for ngx_peer_connection_s[src]

Auto Trait Implementations

impl RefUnwindSafe for ngx_peer_connection_s

impl !Send for ngx_peer_connection_s

impl !Sync for ngx_peer_connection_s

impl Unpin for ngx_peer_connection_s

impl UnwindSafe for ngx_peer_connection_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> 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.