pub struct Service<T, C>where
T: Acceptor<Connection = C>,
C: Connection,{ /* private fields */ }Implementations§
Source§impl<T, C> Service<T, C>
impl<T, C> Service<T, C>
pub async fn build<Builder, V>(config: Arc<ServiceConfig>) -> Result<Self>where
Builder: ServiceBuilder<Acceptor = T, Connection = C, Validator = V>,
V: HandshakeValidator + Send + Sync + 'static,
pub async fn shutdown(self)
Auto Trait Implementations§
impl<T, C> Freeze for Service<T, C>
impl<T, C> RefUnwindSafe for Service<T, C>where
T: RefUnwindSafe,
C: RefUnwindSafe,
impl<T, C> Send for Service<T, C>
impl<T, C> Sync for Service<T, C>
impl<T, C> Unpin for Service<T, C>
impl<T, C> UnwindSafe for Service<T, C>where
T: UnwindSafe,
C: UnwindSafe,
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