Skip to main content

VTabModule

Trait VTabModule 

Source
pub trait VTabModule: 'static {
    type Table: VTable;

    const VTAB_KIND: VTabKind;
    const NAME: &'static str;

    // Required method
    fn create(args: &[Value]) -> Result<(String, Self::Table), ResultCode>;
}

Required Associated Constants§

Source

const VTAB_KIND: VTabKind

Source

const NAME: &'static str

Required Associated Types§

Required Methods§

Source

fn create(args: &[Value]) -> Result<(String, Self::Table), ResultCode>

Creates a new instance of a virtual table. Returns a tuple where the first element is the table’s schema.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§