#[repr(C)]pub struct apr_uri_t {Show 14 fields
pub scheme: *mut c_char,
pub hostinfo: *mut c_char,
pub user: *mut c_char,
pub password: *mut c_char,
pub hostname: *mut c_char,
pub port_str: *mut c_char,
pub path: *mut c_char,
pub query: *mut c_char,
pub fragment: *mut c_char,
pub hostent: *mut hostent,
pub port: apr_port_t,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub __bindgen_padding_0: [u8; 5],
}Expand description
A structure to encompass all of the fields in a uri
Fields§
§scheme: *mut c_charscheme (“http”/“ftp”/…)
hostinfo: *mut c_charcombined [user[:password]@]host[:port]
user: *mut c_charuser name, as in http://user:passwd@host:port/
password: *mut c_charpassword, as in http://user:passwd@host:port/
hostname: *mut c_charhostname from URI (or from Host: header)
port_str: *mut c_charport string (integer representation is in “port”)
path: *mut c_charthe request path (or NULL if only scheme://host was given)
query: *mut c_charEverything after a ‘?’ in the path, if present
fragment: *mut c_charTrailing “#fragment” string, if present
hostent: *mut hostentstructure returned from gethostbyname()
port: apr_port_tThe port number, numeric, valid only if port_str != NULL
_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§__bindgen_padding_0: [u8; 5]Implementations§
Source§impl apr_uri_t
impl apr_uri_t
pub fn is_initialized(&self) -> c_uint
pub fn set_is_initialized(&mut self, val: c_uint)
pub unsafe fn is_initialized_raw(this: *const Self) -> c_uint
pub unsafe fn set_is_initialized_raw(this: *mut Self, val: c_uint)
pub fn dns_looked_up(&self) -> c_uint
pub fn set_dns_looked_up(&mut self, val: c_uint)
pub unsafe fn dns_looked_up_raw(this: *const Self) -> c_uint
pub unsafe fn set_dns_looked_up_raw(this: *mut Self, val: c_uint)
pub fn dns_resolved(&self) -> c_uint
pub fn set_dns_resolved(&mut self, val: c_uint)
pub unsafe fn dns_resolved_raw(this: *const Self) -> c_uint
pub unsafe fn set_dns_resolved_raw(this: *mut Self, val: c_uint)
pub fn new_bitfield_1( is_initialized: c_uint, dns_looked_up: c_uint, dns_resolved: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for apr_uri_t
impl RefUnwindSafe for apr_uri_t
impl !Send for apr_uri_t
impl !Sync for apr_uri_t
impl Unpin for apr_uri_t
impl UnsafeUnpin for apr_uri_t
impl UnwindSafe for apr_uri_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