Trait thruster::ThrusterServer
source · pub trait ThrusterServer {
type Context: Context + Clone + Send + Sync;
type Response;
type Request: ThrusterRequest;
type State: Send;
// Required methods
fn new(_: App<Self::Request, Self::Context, Self::State>) -> Self;
fn build(self, host: &str, port: u16) -> ReusableBoxFuture<()> ⓘ;
// Provided method
fn start(self, host: &str, port: u16)
where Self: Sized { ... }
}
Required Associated Types§
type Context: Context + Clone + Send + Sync
type Response
type Request: ThrusterRequest
type State: Send
Required Methods§
fn new(_: App<Self::Request, Self::Context, Self::State>) -> Self
fn build(self, host: &str, port: u16) -> ReusableBoxFuture<()> ⓘ
Provided Methods§
Object Safety§
This trait is not object safe.