[−][src]Struct libsip::uri::Uri
Universal Rescource Identifier for libsip.
Fields
schema: Option<UriSchema>
host: Domain
auth: Option<UriAuth>
parameters: Vec<UriParam>
Implementations
impl Uri
[src]
pub fn new(schema: UriSchema, host: Domain) -> Uri
[src]
pub fn new_schemaless(host: Domain) -> Uri
[src]
Create a new Uri without schema.
pub fn sip(host: Domain) -> Uri
[src]
Create a new Uri With schema set to Schema::Sip
.
pub fn sips(host: Domain) -> Uri
[src]
Create a new Uri With schema set to Schema::Sips
.
pub fn auth(self, auth: UriAuth) -> Uri
[src]
Add a UriAuth
section to this Uri.
pub fn authless(self) -> Uri
[src]
Remove authentication if there is any.
pub fn parameter(self, p: UriParam) -> Uri
[src]
Add a new parameter to the parameter list.
pub fn parameters(self, p: Vec<UriParam>) -> Uri
[src]
Add a list of new parameters. This will remove all old parameters.
pub fn schemaless(self) -> Uri
[src]
Remove the Schema if there is any.
pub fn schema(self, schema: UriSchema) -> Uri
[src]
Set a new Schema.
pub fn host(&self) -> String
[src]
Set the host value.
pub fn host_and_params(&self) -> IoResult<String>
[src]
Retrieve a formatted string containing host and parameters. This can be used in the Via header.
Trait Implementations
impl Clone for Uri
[src]
impl Debug for Uri
[src]
impl<'de> Deserialize<'de> for Uri
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for Uri
[src]
impl FromStr for Uri
[src]
type Err = Err<ErrorKind>
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl PartialEq<Uri> for Uri
[src]
impl Serialize for Uri
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Uri
[src]
Auto Trait Implementations
impl RefUnwindSafe for Uri
impl Send for Uri
impl Sync for Uri
impl Unpin for Uri
impl UnwindSafe for Uri
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,