Skip to main content

SstvPaperEvent

Enum SstvPaperEvent 

Source
#[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

§paper_id: u64

Decoder-local paper identifier.

§mode: SstvMode

Initial mode.

§width: u32

Initial width.

§

Boundary

A meaningful paper divider.

Fields

§paper_id: u64

Decoder-local paper identifier.

§boundary_id: u64

Boundary identifier.

§line_index: u64

First row after the divider.

§mode: SstvMode

Active mode.

§detection: Option<DetectionSource>

Detection path, when applicable.

§kind: PaperBoundaryKind

Divider classification.

§trusted: bool

Whether the divider anchors an automatic capture.

§width: u32

Pixel width.

§nominal_height: u32

Protocol-defined image height.

§

ModeCandidate

Mode candidates from sync timing.

Fields

§candidates: Vec<SstvMode>

Compatible modes.

§confidence: f32

Timing confidence.

§

LineReady

One owned paper row.

Fields

§paper_id: u64

Decoder-local paper identifier.

§boundary_id: u64

Current segment boundary.

§line_index: u64

Monotonic paper row.

§mode_line_index: u32

Row within the mode cycle.

§mode: SstvMode

Active mode.

§revision: u32

Row revision.

§completeness: LineCompleteness

Completion state.

§pixels: Vec<Rgb>

Owned RGB pixels.

§

TransmissionCompleted

A trusted transmission completed.

Fields

§paper_id: u64

Decoder-local paper identifier.

§boundary_id: u64

Boundary that opened the capture.

§start_line: u64

First captured row.

§end_line: u64

Exclusive captured end.

§mode: SstvMode

Completed mode.

§lines: u32

Number of completed rows.

§

ProtocolObserved

A protocol was observed but not accepted.

Fields

§mode: SstvMode

Observed mode.

§detection: DetectionSource

Detection path.

§trusted: bool

Whether the observation was trusted.

§

SignalRejected

A header-like signal was rejected.

Fields

§reason: &'static str

Stable reason.

Trait Implementations§

Source§

impl Clone for SstvPaperEvent

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SstvPaperEvent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for SstvPaperEvent

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for SstvPaperEvent

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.