#[repr(transparent)]pub struct Uri { /* private fields */ }Implementations
sourceimpl Uri
impl Uri
pub fn auth_params(&self) -> Option<GString>
pub fn flags(&self) -> UriFlags
pub fn fragment(&self) -> Option<GString>
pub fn host(&self) -> Option<GString>
pub fn password(&self) -> Option<GString>
pub fn path(&self) -> GString
pub fn port(&self) -> i32
pub fn query(&self) -> Option<GString>
pub fn scheme(&self) -> GString
pub fn user(&self) -> Option<GString>
pub fn userinfo(&self) -> Option<GString>
pub fn parse_relative(
&self,
uri_ref: &str,
flags: UriFlags
) -> Result<Uri, Error>
pub fn to_str(&self) -> GString
pub fn to_string_partial(&self, flags: UriHideFlags) -> GString
pub fn build(
flags: UriFlags,
scheme: &str,
userinfo: Option<&str>,
host: Option<&str>,
port: i32,
path: &str,
query: Option<&str>,
fragment: Option<&str>
) -> Uri
pub fn build_with_user(
flags: UriFlags,
scheme: &str,
user: Option<&str>,
password: Option<&str>,
auth_params: Option<&str>,
host: Option<&str>,
port: i32,
path: &str,
query: Option<&str>,
fragment: Option<&str>
) -> Uri
pub fn escape_bytes(
unescaped: &[u8],
reserved_chars_allowed: Option<&str>
) -> GString
pub fn escape_string(
unescaped: &str,
reserved_chars_allowed: Option<&str>,
allow_utf8: bool
) -> GString
pub fn is_valid(uri_string: &str, flags: UriFlags) -> Result<(), Error>
pub fn join(
flags: UriFlags,
scheme: Option<&str>,
userinfo: Option<&str>,
host: Option<&str>,
port: i32,
path: &str,
query: Option<&str>,
fragment: Option<&str>
) -> GString
pub fn join_with_user(
flags: UriFlags,
scheme: Option<&str>,
user: Option<&str>,
password: Option<&str>,
auth_params: Option<&str>,
host: Option<&str>,
port: i32,
path: &str,
query: Option<&str>,
fragment: Option<&str>
) -> GString
pub fn list_extract_uris(uri_list: &str) -> Vec<GString>
pub fn parse(uri_string: &str, flags: UriFlags) -> Result<Uri, Error>
pub fn parse_scheme(uri: &str) -> Option<GString>
pub fn peek_scheme(uri: &str) -> Option<GString>
pub fn resolve_relative(
base_uri_string: Option<&str>,
uri_ref: &str,
flags: UriFlags
) -> Result<GString, Error>
pub fn split(
uri_ref: &str,
flags: UriFlags
) -> Result<(Option<GString>, Option<GString>, Option<GString>, i32, GString, Option<GString>, Option<GString>), Error>
pub fn split_network(
uri_string: &str,
flags: UriFlags
) -> Result<(Option<GString>, Option<GString>, i32), Error>
pub fn split_with_user(
uri_ref: &str,
flags: UriFlags
) -> Result<(Option<GString>, Option<GString>, Option<GString>, Option<GString>, Option<GString>, i32, GString, Option<GString>, Option<GString>), Error>
pub fn unescape_bytes(
escaped_string: &str,
illegal_characters: Option<&str>
) -> Result<Bytes, Error>
pub fn unescape_segment(
escaped_string: Option<&str>,
escaped_string_end: Option<&str>,
illegal_characters: Option<&str>
) -> Option<GString>
pub fn unescape_string(
escaped_string: &str,
illegal_characters: Option<&str>
) -> Option<GString>
Trait Implementations
sourceimpl Ord for Uri
impl Ord for Uri
sourceimpl PartialOrd<Uri> for Uri
impl PartialOrd<Uri> for Uri
sourcefn partial_cmp(&self, other: &Uri) -> Option<Ordering>
fn partial_cmp(&self, other: &Uri) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl StaticType for Uri
impl StaticType for Uri
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self.
impl Eq for Uri
impl Send for Uri
impl StructuralEq for Uri
impl StructuralPartialEq for Uri
impl Sync for Uri
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a SendValue clone of self.