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: StringSpecifies 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§
Source§impl Clone for ControlPoint
impl Clone for ControlPoint
Source§fn clone(&self) -> ControlPoint
fn clone(&self) -> ControlPoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ControlPoint
impl RefUnwindSafe for ControlPoint
impl Send for ControlPoint
impl Sync for ControlPoint
impl Unpin for ControlPoint
impl UnwindSafe for ControlPoint
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