pub enum BraidHttpApiCallback {
NewCamera(RegisterNewCamera),
UpdateCurrentImage(PerCam<UpdateImage>),
UpdateCamSettings(PerCam<UpdateCamSettings>),
UpdateFeatureDetectSettings(PerCam<UpdateFeatureDetectSettings>),
DoRecordCsvTables(bool),
DoRecordMp4Files(bool),
SetExperimentUuid(String),
SetPostTriggerBufferSize(usize),
PostTriggerMp4Recording,
}
Expand description
Messages to Braid
Variants§
NewCamera(RegisterNewCamera)
Called from strand-cam to register a camera
Note this is different than the cam_info_handler
which only queries
for the appropriate camera configuration.
UpdateCurrentImage(PerCam<UpdateImage>)
Called from strand-cam to update the current image
UpdateCamSettings(PerCam<UpdateCamSettings>)
Called from strand-cam to update the current camera settings (e.g. exposure time)
UpdateFeatureDetectSettings(PerCam<UpdateFeatureDetectSettings>)
Called from strand-cam to update the current feature detection settings (e.g. threshold different)
DoRecordCsvTables(bool)
Start or stop recording data (.braid directory with csv tables for later .braidz file)
DoRecordMp4Files(bool)
Start or stop recording MKV videos for all cameras
SetExperimentUuid(String)
set uuid in the experiment_info table
SetPostTriggerBufferSize(usize)
Set the number of frames to buffer in each camera
PostTriggerMp4Recording
Initiate MKV recording using post trigger
Trait Implementations§
source§impl Clone for BraidHttpApiCallback
impl Clone for BraidHttpApiCallback
source§fn clone(&self) -> BraidHttpApiCallback
fn clone(&self) -> BraidHttpApiCallback
Returns a copy 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 BraidHttpApiCallback
impl Debug for BraidHttpApiCallback
source§impl<'de> Deserialize<'de> for BraidHttpApiCallback
impl<'de> Deserialize<'de> for BraidHttpApiCallback
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
Auto Trait Implementations§
impl Freeze for BraidHttpApiCallback
impl RefUnwindSafe for BraidHttpApiCallback
impl Send for BraidHttpApiCallback
impl Sync for BraidHttpApiCallback
impl Unpin for BraidHttpApiCallback
impl UnwindSafe for BraidHttpApiCallback
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> 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<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>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.