#[repr(C)]pub struct ngx_http_upstream_rr_peers_s {
pub number: usize,
pub shpool: *mut ngx_slab_pool_t,
pub rwlock: u64,
pub zone_next: *mut ngx_http_upstream_rr_peers_s,
pub total_weight: usize,
pub tries: usize,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub name: *mut ngx_str_t,
pub next: *mut ngx_http_upstream_rr_peers_s,
pub peer: *mut ngx_http_upstream_rr_peer_s,
}
Fields§
§number: usize
§shpool: *mut ngx_slab_pool_t
§rwlock: u64
§zone_next: *mut ngx_http_upstream_rr_peers_s
§total_weight: usize
§tries: usize
§_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>
§name: *mut ngx_str_t
§next: *mut ngx_http_upstream_rr_peers_s
§peer: *mut ngx_http_upstream_rr_peer_s
Implementations§
Source§impl ngx_http_upstream_rr_peers_s
impl ngx_http_upstream_rr_peers_s
pub fn single(&self) -> u32
pub fn set_single(&mut self, val: u32)
pub unsafe fn single_raw(this: *const ngx_http_upstream_rr_peers_s) -> u32
pub unsafe fn set_single_raw(this: *mut ngx_http_upstream_rr_peers_s, val: u32)
pub fn weighted(&self) -> u32
pub fn set_weighted(&mut self, val: u32)
pub unsafe fn weighted_raw(this: *const ngx_http_upstream_rr_peers_s) -> u32
pub unsafe fn set_weighted_raw( this: *mut ngx_http_upstream_rr_peers_s, val: u32, )
pub fn new_bitfield_1( single: u32, weighted: u32, ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
Source§impl Clone for ngx_http_upstream_rr_peers_s
impl Clone for ngx_http_upstream_rr_peers_s
Source§fn clone(&self) -> ngx_http_upstream_rr_peers_s
fn clone(&self) -> ngx_http_upstream_rr_peers_s
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ngx_http_upstream_rr_peers_s
impl Debug for ngx_http_upstream_rr_peers_s
impl Copy for ngx_http_upstream_rr_peers_s
Auto Trait Implementations§
impl Freeze for ngx_http_upstream_rr_peers_s
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more