pub enum CallbackType {
ToCamera(CamArg),
FirehoseNotify(ConnectionKey),
TakeCurrentImageAsBackground,
ClearBackground(f32),
ToLedBox(ToLedBoxDevice),
}Expand description
Commands and callbacks that can be sent to control camera behavior.
This enum represents different types of control messages that can be sent to modify camera settings, trigger actions, or control peripheral devices like LED systems.
§Usage
These callbacks are typically sent from the web interface or external control systems to modify camera behavior in real-time.
Variants§
ToCamera(CamArg)
Camera control commands (exposure, gain, triggering, etc.).
FirehoseNotify(ConnectionKey)
Notification for firehose data streaming connections.
TakeCurrentImageAsBackground
Re-initialize the background model from the currently incoming images.
Used for background subtraction in object detection algorithms.
ClearBackground(f32)
Set the background model to a uniform image with the given pixel value.
The value is the gray level (0-255) assigned to every pixel of the background mean; the model variance is set to zero. The browser UI’s “Set background to mid-gray” button sends 127.0.
ToLedBox(ToLedBoxDevice)
Commands to send to LED control devices.
Trait Implementations§
Source§impl Clone for CallbackType
impl Clone for CallbackType
Source§fn clone(&self) -> CallbackType
fn clone(&self) -> CallbackType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CallbackType
impl Debug for CallbackType
Source§impl<'de> Deserialize<'de> for CallbackType
impl<'de> Deserialize<'de> for CallbackType
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>,
Auto Trait Implementations§
impl Freeze for CallbackType
impl RefUnwindSafe for CallbackType
impl Send for CallbackType
impl Sync for CallbackType
impl Unpin for CallbackType
impl UnsafeUnpin for CallbackType
impl UnwindSafe for CallbackType
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.