[−]Enum sonor::URN
Uniform Resource Name
e.g. urn:schemas-upnp-org:service:RenderingControl:1
Variants
Implementations
impl URN
pub const fn device(
domain: &'static str,
typ: &'static str,
version: u32
) -> URN
domain: &'static str,
typ: &'static str,
version: u32
) -> URN
Creates an instance of a device URN
pub const fn service(
domain: &'static str,
typ: &'static str,
version: u32
) -> URN
domain: &'static str,
typ: &'static str,
version: u32
) -> URN
Creates an instance of a service URN
pub fn domain_name(&self) -> &str
Extracts the schemas-upnp-org
part of the
urn:schemas-upnp-org:service:RenderingControl:1
pub fn typ(&self) -> &str
Extracts the RenderingControl
part of the
urn:schemas-upnp-org:service:RenderingControl:1
pub fn version(&self) -> u32
Extracts the 1
part of the
urn:schemas-upnp-org:service:RenderingControl:1
Trait Implementations
impl Clone for URN
pub fn clone(&self) -> URN
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for URN
impl Display for URN
impl Eq for URN
impl FromStr for URN
type Err = ParseURNError
The associated error which can be returned from parsing.
pub fn from_str(str: &str) -> Result<URN, <URN as FromStr>::Err>
impl Into<SearchTarget> for URN
pub fn into(self) -> SearchTarget
impl Ord for URN
pub fn cmp(&self, other: &URN) -> Ordering
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<URN> for URN
impl PartialOrd<URN> for URN
pub fn partial_cmp(&self, other: &URN) -> Option<Ordering>
pub fn lt(&self, other: &URN) -> bool
pub fn le(&self, other: &URN) -> bool
pub fn gt(&self, other: &URN) -> bool
pub fn ge(&self, other: &URN) -> bool
impl StructuralEq for URN
impl StructuralPartialEq for URN
Auto Trait Implementations
impl RefUnwindSafe for URN
[src]
impl Send for URN
[src]
impl Sync for URN
[src]
impl Unpin for URN
[src]
impl UnwindSafe for URN
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,