Enum ssdp_client::URN
source · 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 Into<SearchTarget> for URN
impl Into<SearchTarget> for URN
source§fn into(self) -> SearchTarget
fn into(self) -> SearchTarget
Converts this type into the (usually inferred) input type.
source§impl Ord for URN
impl Ord for URN
source§impl PartialOrd<URN> for URN
impl PartialOrd<URN> for URN
1.0.0 · source§fn 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 moreimpl Eq for URN
impl StructuralEq for URN
impl StructuralPartialEq for URN
Auto Trait Implementations§
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