#[repr(C)]pub struct ngx_stream_upstream_server_t {Show 13 fields
pub name: ngx_str_t,
pub addrs: *mut ngx_addr_t,
pub naddrs: usize,
pub weight: usize,
pub max_conns: usize,
pub max_fails: usize,
pub fail_timeout: i64,
pub slow_start: usize,
pub down: usize,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub host: ngx_str_t,
pub service: ngx_str_t,
}Fields§
§name: ngx_str_t§addrs: *mut ngx_addr_t§naddrs: usize§weight: usize§max_conns: usize§max_fails: usize§fail_timeout: i64§slow_start: usize§down: usize§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§host: ngx_str_t§service: ngx_str_tImplementations§
Source§impl ngx_stream_upstream_server_t
impl ngx_stream_upstream_server_t
pub fn backup(&self) -> u32
pub fn set_backup(&mut self, val: u32)
pub unsafe fn backup_raw(this: *const ngx_stream_upstream_server_t) -> u32
pub unsafe fn set_backup_raw(this: *mut ngx_stream_upstream_server_t, val: u32)
pub fn new_bitfield_1(backup: u32) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
Source§impl Clone for ngx_stream_upstream_server_t
impl Clone for ngx_stream_upstream_server_t
Source§fn clone(&self) -> ngx_stream_upstream_server_t
fn clone(&self) -> ngx_stream_upstream_server_t
Returns a duplicate 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_stream_upstream_server_t
impl Debug for ngx_stream_upstream_server_t
impl Copy for ngx_stream_upstream_server_t
Auto Trait Implementations§
impl Freeze for ngx_stream_upstream_server_t
impl RefUnwindSafe for ngx_stream_upstream_server_t
impl !Send for ngx_stream_upstream_server_t
impl !Sync for ngx_stream_upstream_server_t
impl Unpin for ngx_stream_upstream_server_t
impl UnwindSafe for ngx_stream_upstream_server_t
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