#[non_exhaustive]pub struct Reopen {
pub access: Access,
pub patience: Duration,
pub discovery_timeout: Duration,
pub interface: Option<String>,
pub configuration: Option<Configuration>,
}Expand description
How reopen_gige looks for a camera that went away, and what it puts
back.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.access: AccessHow the camera is opened again; Access::Control by default.
patience: DurationHow long to keep trying before giving up; 30 s by default, enough for a camera’s heartbeat to expire and for one to boot.
discovery_timeout: DurationHow long each discovery waits for an answer; 500 ms by default.
interface: Option<String>The host interface to look on when the camera no longer answers at
its old address, by OS name; every interface when None.
configuration: Option<Configuration>A configuration to restore once the camera is open, such as one
Camera::save_features saved before it went away.
Implementations§
Source§impl Reopen
impl Reopen
Sourcepub fn discovery_timeout(self, timeout: Duration) -> Self
pub fn discovery_timeout(self, timeout: Duration) -> Self
Wait timeout for each discovery answer.
Sourcepub fn interface(self, name: impl Into<String>) -> Self
pub fn interface(self, name: impl Into<String>) -> Self
Look on the host interface named name (en0, eth0).
Sourcepub fn configuration(self, configuration: Configuration) -> Self
pub fn configuration(self, configuration: Configuration) -> Self
Restore configuration once the camera is open.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Reopen
impl RefUnwindSafe for Reopen
impl Send for Reopen
impl Sync for Reopen
impl Unpin for Reopen
impl UnsafeUnpin for Reopen
impl UnwindSafe for Reopen
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