Struct tsukuyomi_server::server::Server
source · pub struct Server<S, Tr = ()> { /* private fields */ }
Implementations
sourceimpl<S, Tr> Server<S, Tr>where
S: NewService,
S::Request: HttpRequest,
S::Response: HttpResponse,
S::Error: Into<CritError>,
S::InitError: Into<CritError>,
Tr: Transport,
impl<S, Tr> Server<S, Tr>where
S: NewService,
S::Request: HttpRequest,
S::Response: HttpResponse,
S::Error: Into<CritError>,
S::InitError: Into<CritError>,
Tr: Transport,
pub fn run_forever(self) -> Result<()>where
S: Send + 'static,
<S::Service as Service>::Future: Send + 'static,
S::Service: Send + 'static,
S::Future: Send + 'static,
pub fn run_until<F>(self, signal: F) -> Result<()>where
S: Send + 'static,
<S::Service as Service>::Future: Send + 'static,
S::Service: Send + 'static,
S::Future: Send + 'static,
F: Future<Item = ()> + Send + 'static,
Auto Trait Implementations
impl<S, Tr = ()> !RefUnwindSafe for Server<S, Tr>
impl<S, Tr> Send for Server<S, Tr>where
S: Send,
Tr: Send,
impl<S, Tr> Sync for Server<S, Tr>where
S: Sync,
Tr: Sync,
impl<S, Tr> Unpin for Server<S, Tr>where
S: Unpin,
Tr: Unpin,
impl<S, Tr = ()> !UnwindSafe for Server<S, Tr>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more