pub enum URN {
Device(Cow<'static, str>, Cow<'static, str>, u32),
Service(Cow<'static, str>, Cow<'static, str>, u32),
}
Expand description
Uniform Resource Name
e.g. urn:schemas-upnp-org:service:RenderingControl:1
Variants§
Device(Cow<'static, str>, Cow<'static, str>, u32)
Service(Cow<'static, str>, Cow<'static, str>, u32)
Implementations§
Source§impl URN
impl URN
Sourcepub const fn device(
domain: &'static str,
typ: &'static str,
version: u32,
) -> Self
pub const fn device( domain: &'static str, typ: &'static str, version: u32, ) -> Self
Creates an instance of a device URN
Sourcepub const fn service(
domain: &'static str,
typ: &'static str,
version: u32,
) -> Self
pub const fn service( domain: &'static str, typ: &'static str, version: u32, ) -> Self
Creates an instance of a service URN
Sourcepub fn domain_name(&self) -> &str
pub fn domain_name(&self) -> &str
Extracts the schemas-upnp-org
part of the
urn:schemas-upnp-org:service:RenderingControl:1
Trait Implementations§
Source§impl From<URN> for SearchTarget
impl From<URN> for SearchTarget
Source§impl Ord for URN
impl Ord for URN
Source§impl PartialOrd for URN
impl PartialOrd for URN
impl Eq for URN
impl StructuralPartialEq for URN
Auto Trait Implementations§
impl Freeze for URN
impl RefUnwindSafe for URN
impl Send for URN
impl Sync for URN
impl Unpin for URN
impl UnwindSafe for URN
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