#[non_exhaustive]pub enum SstvPaperEvent {
PaperStarted {
paper_id: u64,
mode: SstvMode,
width: u32,
},
Boundary {
paper_id: u64,
boundary_id: u64,
line_index: u64,
mode: SstvMode,
detection: Option<DetectionSource>,
kind: PaperBoundaryKind,
trusted: bool,
width: u32,
nominal_height: u32,
},
ModeCandidate {
candidates: Vec<SstvMode>,
confidence: f32,
},
LineReady {
paper_id: u64,
boundary_id: u64,
line_index: u64,
mode_line_index: u32,
mode: SstvMode,
revision: u32,
completeness: LineCompleteness,
pixels: Vec<Rgb>,
},
TransmissionCompleted {
paper_id: u64,
boundary_id: u64,
start_line: u64,
end_line: u64,
mode: SstvMode,
lines: u32,
},
ProtocolObserved {
mode: SstvMode,
detection: DetectionSource,
trusted: bool,
},
SignalRejected {
reason: &'static str,
},
}Expand description
Owned form of SstvPaperEventRef.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PaperStarted
A paper raster began.
Fields
Boundary
A meaningful paper divider.
Fields
§
detection: Option<DetectionSource>Detection path, when applicable.
§
kind: PaperBoundaryKindDivider classification.
ModeCandidate
Mode candidates from sync timing.
LineReady
One owned paper row.
Fields
§
completeness: LineCompletenessCompletion state.
TransmissionCompleted
A trusted transmission completed.
Fields
ProtocolObserved
A protocol was observed but not accepted.
Fields
§
detection: DetectionSourceDetection path.
SignalRejected
A header-like signal was rejected.
Trait Implementations§
Source§impl Clone for SstvPaperEvent
impl Clone for SstvPaperEvent
Source§impl Debug for SstvPaperEvent
impl Debug for SstvPaperEvent
Source§impl PartialEq for SstvPaperEvent
impl PartialEq for SstvPaperEvent
impl StructuralPartialEq for SstvPaperEvent
Auto Trait Implementations§
impl Forget for SstvPaperEvent
impl Freeze for SstvPaperEvent
impl Move for SstvPaperEvent
impl RefUnwindSafe for SstvPaperEvent
impl Send for SstvPaperEvent
impl Sync for SstvPaperEvent
impl Unpin for SstvPaperEvent
impl UnsafeUnpin for SstvPaperEvent
impl UnwindSafe for SstvPaperEvent
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