pub struct ProtoServer<T: 'static + Context + Clone + Send + Sync, S: Send> { /* private fields */ }Trait Implementations§
Source§impl<T: Context<Response = Response<ProtoBody>> + Clone + Send + Sync, S: 'static + Send + Sync> ThrusterServer for ProtoServer<T, S>
impl<T: Context<Response = Response<ProtoBody>> + Clone + Send + Sync, S: 'static + Send + Sync> ThrusterServer for ProtoServer<T, S>
type Context = T
type Response = Response<ProtoBody>
type Request = HyperRequest
type State = S
fn new(app: App<Self::Request, T, Self::State>) -> Self
fn build(self, host: &str, port: u16) -> ReusableBoxFuture<()>
fn start(self, host: &str, port: u16)where
Self: Sized,
Auto Trait Implementations§
impl<T, S> Freeze for ProtoServer<T, S>
impl<T, S> !RefUnwindSafe for ProtoServer<T, S>
impl<T, S> Send for ProtoServer<T, S>where
S: Sync,
impl<T, S> Sync for ProtoServer<T, S>where
S: Sync,
impl<T, S> Unpin for ProtoServer<T, S>
impl<T, S> !UnwindSafe for ProtoServer<T, S>
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