pub enum StartCameraBackend {
Remote,
Pylon,
Vimba,
Webcam,
Sim,
}Expand description
Camera backend selection for local camera startup.
Variants§
Remote
Do not start a camera locally. Rather, wait for a remote camera to connect.
Pylon
Start a Pylon camera locally using the strand-cam program with the
--camera-backend pylon argument.
Vimba
Start a Vimba camera locally using the strand-cam program with the
--camera-backend vimba argument.
Webcam
Start a consumer webcam locally using the strand-cam program with
the --camera-backend webcam argument.
Intended for development use. The camera name to use in the
configuration is the human-readable device name of the webcam.
Sim
Start a simulated camera locally using the strand-cam program with the
--camera-backend sim argument.
Used for end-to-end testing with no hardware: the camera renders
synthetic images of simulated insects. The scenario is given by the
STRAND_CAM_SIM_SPEC environment variable, and the camera name is one
of the simulated camera names (e.g. simcam0).
Implementations§
Source§impl StartCameraBackend
impl StartCameraBackend
Sourcepub fn strand_cam_exe_name(&self) -> Option<&str>
pub fn strand_cam_exe_name(&self) -> Option<&str>
Get the executable name for the camera backend.
All local backends are served by the single merged strand-cam
executable, which selects the backend at runtime via
Self::camera_backend_arg.
Sourcepub fn camera_backend_arg(&self) -> Option<&'static str>
pub fn camera_backend_arg(&self) -> Option<&'static str>
Get the value for the --camera-backend argument of the strand-cam
executable, or None for a remote camera (whose backend is chosen on
the remote machine).
Trait Implementations§
Source§impl Clone for StartCameraBackend
impl Clone for StartCameraBackend
Source§fn clone(&self) -> StartCameraBackend
fn clone(&self) -> StartCameraBackend
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StartCameraBackend
impl Debug for StartCameraBackend
Source§impl Default for StartCameraBackend
impl Default for StartCameraBackend
Source§fn default() -> StartCameraBackend
fn default() -> StartCameraBackend
Source§impl<'de> Deserialize<'de> for StartCameraBackend
impl<'de> Deserialize<'de> for StartCameraBackend
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for StartCameraBackend
impl PartialEq for StartCameraBackend
Source§impl Serialize for StartCameraBackend
impl Serialize for StartCameraBackend
impl Eq for StartCameraBackend
impl StructuralPartialEq for StartCameraBackend
Auto Trait Implementations§
impl Freeze for StartCameraBackend
impl RefUnwindSafe for StartCameraBackend
impl Send for StartCameraBackend
impl Sync for StartCameraBackend
impl Unpin for StartCameraBackend
impl UnsafeUnpin for StartCameraBackend
impl UnwindSafe for StartCameraBackend
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Preferences for Twhere
T: Serialize + DeserializeOwned,
impl<T> Preferences for Twhere
T: Serialize + DeserializeOwned,
Source§fn save<S>(&self, app: &AppInfo, key: S) -> Result<(), PreferencesError>
fn save<S>(&self, app: &AppInfo, key: S) -> Result<(), PreferencesError>
Source§fn load<S>(app: &AppInfo, key: S) -> Result<T, PreferencesError>
fn load<S>(app: &AppInfo, key: S) -> Result<T, PreferencesError>
key. This is
an instance method which completely overwrites the object’s state with the serialized
data. Thus, it is recommended that you call this method immediately after instantiating
the preferences object. Read more