Skip to main content

StreamSpec

Trait StreamSpec 

Source
pub trait StreamSpec {
    type Row;

    const ID: &'static str;
    const VERSION: u32;
    const WINDOW: usize;
    const METADATA_JSON: &'static str = "";
    const ROW_METADATA_JSON: &'static str = "[]";

    // Provided methods
    fn metadata() -> Metadata { ... }
    fn row_metadata() -> Vec<StreamField> { ... }
}

Required Associated Constants§

Source

const ID: &'static str

Source

const VERSION: u32

Source

const WINDOW: usize

Provided Associated Constants§

Source

const METADATA_JSON: &'static str = ""

Source

const ROW_METADATA_JSON: &'static str = "[]"

Required Associated Types§

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§