Skip to main content

apr_uri_t

Struct apr_uri_t 

Source
#[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_char

scheme (“http”/“ftp”/…)

§hostinfo: *mut c_char

combined [user[:password]@]host[:port]

§user: *mut c_char

user name, as in http://user:passwd@host:port/

§password: *mut c_char

password, as in http://user:passwd@host:port/

§hostname: *mut c_char

hostname from URI (or from Host: header)

§port_str: *mut c_char

port string (integer representation is in “port”)

§path: *mut c_char

the request path (or NULL if only scheme://host was given)

§query: *mut c_char

Everything after a ‘?’ in the path, if present

§fragment: *mut c_char

Trailing “#fragment” string, if present

§hostent: *mut hostent

structure returned from gethostbyname()

§port: apr_port_t

The 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

Source

pub fn is_initialized(&self) -> c_uint

Source

pub fn set_is_initialized(&mut self, val: c_uint)

Source

pub unsafe fn is_initialized_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_is_initialized_raw(this: *mut Self, val: c_uint)

Source

pub fn dns_looked_up(&self) -> c_uint

Source

pub fn set_dns_looked_up(&mut self, val: c_uint)

Source

pub unsafe fn dns_looked_up_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_dns_looked_up_raw(this: *mut Self, val: c_uint)

Source

pub fn dns_resolved(&self) -> c_uint

Source

pub fn set_dns_resolved(&mut self, val: c_uint)

Source

pub unsafe fn dns_resolved_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_dns_resolved_raw(this: *mut Self, val: c_uint)

Source

pub fn new_bitfield_1( is_initialized: c_uint, dns_looked_up: c_uint, dns_resolved: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>

Trait Implementations§

Source§

impl Clone for apr_uri_t

Source§

fn clone(&self) -> apr_uri_t

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for apr_uri_t

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for apr_uri_t

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.