pub struct JsServerHandler(/* private fields */);Trait Implementations§
Source§impl VirtualServerHandler for JsServerHandler
impl VirtualServerHandler for JsServerHandler
type Error = JsError
Source§fn get_features(
&self,
) -> Pin<Box<dyn Future<Output = Result<Features<'_>, Self::Error>>>>
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>>>>
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>>>>
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>>>>
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>>>>
fn table_column_size( &self, view_id: &str, ) -> Pin<Box<dyn Future<Output = Result<u32, Self::Error>>>>
Return the column count of a
TableSource§fn table_validate_expression(
&self,
table_id: &str,
expression: &str,
) -> Pin<Box<dyn Future<Output = Result<ColumnType, Self::Error>>>>
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>>>>
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>>>>
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>>>>
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>>>>
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
ViewSource§fn view_delete(
&self,
view_id: &str,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>>>>
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>>>>
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>>>>
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>>>>
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§
impl Freeze for JsServerHandler
impl RefUnwindSafe for JsServerHandler
impl !Send for JsServerHandler
impl !Sync for JsServerHandler
impl Unpin for JsServerHandler
impl UnwindSafe for JsServerHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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