Skip to main content

JsServerHandler

Struct JsServerHandler 

Source
pub struct JsServerHandler(/* private fields */);

Trait Implementations§

Source§

impl VirtualServerHandler for JsServerHandler

Source§

type Error = JsError

Source§

fn get_features( &self, ) -> Pin<Box<dyn Future<Output = Result<Features<'_>, Self::Error>>>>

Returns the features supported by this handler. Read more
Source§

fn get_hosted_tables( &self, ) -> Pin<Box<dyn Future<Output = Result<Vec<HostedTable>, Self::Error>>>>

Returns a list of all tables hosted by this handler.
Source§

fn table_schema( &self, table_id: &str, ) -> Pin<Box<dyn Future<Output = Result<IndexMap<String, ColumnType>, Self::Error>>>>

Returns the schema (column names and types) for a table.
Source§

fn table_size( &self, table_id: &str, ) -> Pin<Box<dyn Future<Output = Result<u32, Self::Error>>>>

Returns the number of rows in a table.
Source§

fn table_column_size( &self, view_id: &str, ) -> Pin<Box<dyn Future<Output = Result<u32, Self::Error>>>>

Return the column count of a Table
Source§

fn table_validate_expression( &self, table_id: &str, expression: &str, ) -> Pin<Box<dyn Future<Output = Result<ColumnType, Self::Error>>>>

Validates an expression against a table and returns its result type. Read more
Source§

fn table_make_view( &mut self, table_id: &str, view_id: &str, config: &mut ViewConfigUpdate, ) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>>>>

Creates a new view on a table with the given configuration. Read more
Source§

fn view_schema( &self, view_id: &str, config: &ViewConfig, ) -> Pin<Box<dyn Future<Output = Result<IndexMap<String, ColumnType>, Self::Error>>>>

Returns the schema of a view after applying its configuration.
Source§

fn view_size( &self, view_id: &str, ) -> Pin<Box<dyn Future<Output = Result<u32, Self::Error>>>>

Returns the number of rows in a View.
Source§

fn view_column_size( &self, view_id: &str, config: &ViewConfig, ) -> Pin<Box<dyn Future<Output = Result<u32, Self::Error>>>>

Return the column count of a View
Source§

fn view_delete( &self, view_id: &str, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>>>>

Deletes a view and releases its resources.
Source§

fn table_make_port( &self, _req: &TableMakePortReq, ) -> Pin<Box<dyn Future<Output = Result<u32, Self::Error>>>>

Creates a new input port on a table. Read more
Source§

fn make_table( &mut self, table_id: &str, data: &MakeTableData, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>>>>

Creates a new table with the given data. Read more
Source§

fn view_get_data( &self, view_id: &str, config: &ViewConfig, schema: &IndexMap<String, ColumnType>, viewport: &ViewPort, ) -> Pin<Box<dyn Future<Output = Result<VirtualDataSlice, Self::Error>>>>

Retrieves data from a view within the specified viewport.

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more