Struct upnp_rs::discovery::ControlPoint
source · [−]pub struct ControlPoint {
pub friendly_name: String,
pub uuid: Option<String>,
pub port: Option<u16>,
}
Expand description
This represents a specific control point, this is optional for v1.0 and v1.1 messages
but the friendly_name
field is required by the 2.0 specification.
Fields
friendly_name: String
Specifies the friendly name of the control point. The friendly name is vendor specific.
uuid: Option<String>
UUID of the control point. When the control point is implemented in a UPnP device it is recommended to use the UDN of the co-located UPnP device.
port: Option<u16>
A control point can request that a device replies to a TCP port on the control point. When this header is present it identifies the TCP port on which the device can reply to the search.
Trait Implementations
sourceimpl Clone for ControlPoint
impl Clone for ControlPoint
sourcefn clone(&self) -> ControlPoint
fn clone(&self) -> ControlPoint
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for ControlPoint
impl Send for ControlPoint
impl Sync for ControlPoint
impl Unpin for ControlPoint
impl UnwindSafe for ControlPoint
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> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more