pub struct SimpleVirtualTableFactory<T: TableVirtualUser + Clone> { /* private fields */ }Expand description
Factory implementation for TableVirtualUser types.
Implementations§
Source§impl<T: TableVirtualUser + Clone> SimpleVirtualTableFactory<T>
impl<T: TableVirtualUser + Clone> SimpleVirtualTableFactory<T>
Sourcepub fn new(template: T, definition: Arc<TableVirtualDef>) -> Self
pub fn new(template: T, definition: Arc<TableVirtualDef>) -> Self
Create a new factory for the given user table.
Trait Implementations§
Source§impl<T: TableVirtualUser + Clone> VirtualTableFactory for SimpleVirtualTableFactory<T>
impl<T: TableVirtualUser + Clone> VirtualTableFactory for SimpleVirtualTableFactory<T>
Source§fn create_boxed(&self) -> Box<dyn TableVirtual<'static> + Send + Sync>
fn create_boxed(&self) -> Box<dyn TableVirtual<'static> + Send + Sync>
Create a new virtual table instance. Read more
Source§fn definition(&self) -> Arc<TableVirtualDef>
fn definition(&self) -> Arc<TableVirtualDef>
Get the table definition (schema). Read more
Auto Trait Implementations§
impl<T> Freeze for SimpleVirtualTableFactory<T>where
T: Freeze,
impl<T> RefUnwindSafe for SimpleVirtualTableFactory<T>where
T: RefUnwindSafe,
impl<T> Send for SimpleVirtualTableFactory<T>
impl<T> Sync for SimpleVirtualTableFactory<T>
impl<T> Unpin for SimpleVirtualTableFactory<T>where
T: Unpin,
impl<T> UnwindSafe for SimpleVirtualTableFactory<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more