pub struct DiscoveryOptions { /* private fields */ }Expand description
How discover_with looks for cameras.
The default: every IPv4 interface but loopback, and acknowledgements unicast to the host.
Implementations§
Source§impl DiscoveryOptions
impl DiscoveryOptions
Sourcepub fn interface(self, name: impl Into<String>) -> Self
pub fn interface(self, name: impl Into<String>) -> Self
Ask on this interface only, by its OS name. A named interface is asked even when it is loopback.
Sourcepub fn include_loopback(self, include: bool) -> Self
pub fn include_loopback(self, include: bool) -> Self
Ask on loopback too, for simulated cameras bound to 127.0.0.1.
Sourcepub fn allow_broadcast_ack(self, allow: bool) -> Self
pub fn allow_broadcast_ack(self, allow: bool) -> Self
Set the command’s allow broadcast acknowledge flag (0x10): a
camera that cannot unicast its answer to the host — one configured
for another subnet, typically — may broadcast it instead (default:
off).
Off, such a camera may stay silent. On, every listener on the subnet receives its answer, which is why it is not the default.
Trait Implementations§
Source§impl Clone for DiscoveryOptions
impl Clone for DiscoveryOptions
Source§impl Debug for DiscoveryOptions
impl Debug for DiscoveryOptions
Auto Trait Implementations§
impl Freeze for DiscoveryOptions
impl RefUnwindSafe for DiscoveryOptions
impl Send for DiscoveryOptions
impl Sync for DiscoveryOptions
impl Unpin for DiscoveryOptions
impl UnsafeUnpin for DiscoveryOptions
impl UnwindSafe for DiscoveryOptions
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