[][src]Struct nginx::ngx_http_upstream_rr_peers_s

#[repr(C)]pub struct ngx_http_upstream_rr_peers_s {
    pub number: ngx_uint_t,
    pub shpool: *mut ngx_slab_pool_t,
    pub rwlock: ngx_atomic_t,
    pub zone_next: *mut ngx_http_upstream_rr_peers_t,
    pub total_weight: ngx_uint_t,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub name: *mut ngx_str_t,
    pub next: *mut ngx_http_upstream_rr_peers_t,
    pub peer: *mut ngx_http_upstream_rr_peer_t,
}

Fields

number: ngx_uint_tshpool: *mut ngx_slab_pool_trwlock: ngx_atomic_tzone_next: *mut ngx_http_upstream_rr_peers_ttotal_weight: ngx_uint_t_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>name: *mut ngx_str_tnext: *mut ngx_http_upstream_rr_peers_tpeer: *mut ngx_http_upstream_rr_peer_t

Implementations

impl ngx_http_upstream_rr_peers_s[src]

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

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

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

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

pub fn new_bitfield_1(
    single: c_uint,
    weighted: c_uint
) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]

Trait Implementations

impl Clone for ngx_http_upstream_rr_peers_s[src]

impl Copy for ngx_http_upstream_rr_peers_s[src]

impl Debug for ngx_http_upstream_rr_peers_s[src]

Auto Trait Implementations

impl RefUnwindSafe for ngx_http_upstream_rr_peers_s

impl !Send for ngx_http_upstream_rr_peers_s

impl !Sync for ngx_http_upstream_rr_peers_s

impl Unpin for ngx_http_upstream_rr_peers_s

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