pub enum StartCameraBackend {
Remote,
Pylon,
Vimba,
}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.
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.
Both 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
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 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
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
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 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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.