pub struct Options {
pub port: u16,
pub defaults: Vec<IpAddr>,
pub search_time: Duration,
pub timeout: Duration,
}Expand description
Where and how long to look.
Fields§
§port: u16The port of the device descriptions at the addresses of the configured host, the gateway and the defaults.
defaults: Vec<IpAddr>The well-known addresses to try.
search_time: DurationHow long to collect SSDP answers.
timeout: DurationHow long to wait for a device description.
Trait Implementations§
Source§impl Default for Options
impl Default for Options
Source§fn default() -> Self
fn default() -> Self
Port 49000, DEFAULT_ADDRESSES, and two seconds each.
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Forget for Options
impl Freeze for Options
impl Move for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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