#[non_exhaustive]pub enum ControlState {
Held,
Monitor,
Lost,
Released,
}Expand description
Where a GigE session stands with the camera’s control channel privilege (CCP). Only a session that holds it writes registers: in every other state a write is refused before it reaches the camera.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Held
This application holds control privilege and keeps it alive.
Monitor
Opened read-only (GigeRegisterIo::monitor): nothing was claimed,
nothing is written, no heartbeat is sent.
Lost
Privilege was lost: CCP reads without control bits — the heartbeat
expired — or, on a camera that names its primary application, another
application holds it. Checked by the keepalive, and after a write
refused with ACCESS_DENIED, when a camera that does not name its
primary application is also asked by claiming again
(GigeDevice::holds_control). GigeRegisterIo::reclaim_control
asks for it again.
Released
Given up with GigeRegisterIo::release_control;
GigeRegisterIo::reclaim_control takes it again, and so does
Camera::open_stream.
Trait Implementations§
Source§impl Clone for ControlState
impl Clone for ControlState
impl Copy for ControlState
Source§impl Debug for ControlState
impl Debug for ControlState
impl Eq for ControlState
Source§impl PartialEq for ControlState
impl PartialEq for ControlState
impl StructuralPartialEq for ControlState
Auto Trait Implementations§
impl Freeze for ControlState
impl RefUnwindSafe for ControlState
impl Send for ControlState
impl Sync for ControlState
impl Unpin for ControlState
impl UnsafeUnpin for ControlState
impl UnwindSafe for ControlState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.