pub enum NoBackend {}
Expand description
A Backend
with no custom functionality.
Trait Implementations
The custom API definition. If you do not wish to have an API, ()
may be provided.
type CustomApiDispatcher = NoDispatcher<NoBackend>
type CustomApiDispatcher = NoDispatcher<NoBackend>
The type that implements the
Dispatcher
trait. Read more
type ClientData = ()
type ClientData = ()
The type of data that can be stored in
ConnectedClient::set_client_data
. This allows state to be stored
associated with each connected client. Read more
fn initialize<'life0, 'async_trait>(
server: &'life0 CustomServer<Self>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
fn initialize<'life0, 'async_trait>(
server: &'life0 CustomServer<Self>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
Invoked once upon the server starting up.
fn client_connected<'life0, 'life1, 'async_trait>(
client: &'life0 ConnectedClient<Self>,
server: &'life1 CustomServer<Self>
) -> Pin<Box<dyn Future<Output = ConnectionHandling> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn client_connected<'life0, 'life1, 'async_trait>(
client: &'life0 ConnectedClient<Self>,
server: &'life1 CustomServer<Self>
) -> Pin<Box<dyn Future<Output = ConnectionHandling> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
A client disconnected from the server. This is invoked before authentication has been performed.
fn client_disconnected<'life0, 'async_trait>(
client: ConnectedClient<Self>,
server: &'life0 CustomServer<Self>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
fn client_disconnected<'life0, 'async_trait>(
client: ConnectedClient<Self>,
server: &'life0 CustomServer<Self>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
A client disconnected from the server.
fn client_authenticated<'life0, 'async_trait>(
client: ConnectedClient<Self>,
server: &'life0 CustomServer<Self>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
fn client_authenticated<'life0, 'async_trait>(
client: ConnectedClient<Self>,
server: &'life0 CustomServer<Self>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
Self: 'async_trait,
A client successfully authenticated.
type Backend = Self
type Backend = Self
The Backend for this command line.
type Subcommand = Self
type Subcommand = Self
The Subcommand
which is embedded next to the built-in BonsaiDb
commands. Read more
fn configuration<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<ServerConfiguration>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn configuration<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<ServerConfiguration>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Returns the server configuration to use when initializing a local server.
fn execute<'life0, 'async_trait>(
&'life0 mut self,
_command: Self::Subcommand,
_connection: AnyServerConnection<Self>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 mut self,
_command: Self::Subcommand,
_connection: AnyServerConnection<Self>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Execute the command on connection
.
Runs the command-line interface using command-line arguments from the environment. Read more
Runs the command-line interface using the specified list of arguments.
fn open_server<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<CustomServer<Self::Backend>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn open_server<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<CustomServer<Self::Backend>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Returns a new server initialized based on the same configuration used
for CommandLine
. Read more
Instantiate Self
from ArgMatches
, parsing the arguments as needed. Read more
pub fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
pub fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
Assign values from ArgMatches
to self
.
Test whether Self
can parse a specific subcommand
Auto Trait Implementations
impl RefUnwindSafe for NoBackend
impl UnwindSafe for NoBackend
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more