pub struct QuinnListener<S, C, T, E> { /* private fields */ }Expand description
A wrapper of Listener with quinn.
Implementations§
Source§impl<S, C, T, E> QuinnListener<S, C, T, E>where
S: IntoConfigStream<C> + Send + 'static,
C: TryInto<ServerConfig, Error = E> + Send + 'static,
T: ToSocketAddrs + Send,
E: Error + Send,
impl<S, C, T, E> QuinnListener<S, C, T, E>where
S: IntoConfigStream<C> + Send + 'static,
C: TryInto<ServerConfig, Error = E> + Send + 'static,
T: ToSocketAddrs + Send,
E: Error + Send,
Sourcepub fn new(config_stream: S, local_addr: T) -> QuinnListener<S, C, T, E>
pub fn new(config_stream: S, local_addr: T) -> QuinnListener<S, C, T, E>
Bind to socket address.
Trait Implementations§
Source§impl<S, C, T, E> Listener for QuinnListener<S, C, T, E>where
S: IntoConfigStream<C> + Send + 'static,
C: TryInto<ServerConfig, Error = E> + Send + 'static,
T: ToSocketAddrs + Send,
E: Error + Send,
impl<S, C, T, E> Listener for QuinnListener<S, C, T, E>where
S: IntoConfigStream<C> + Send + 'static,
C: TryInto<ServerConfig, Error = E> + Send + 'static,
T: ToSocketAddrs + Send,
E: Error + Send,
Source§type Acceptor = QuinnAcceptor<Pin<Box<dyn Stream<Item = C> + Send>>, C, <C as TryInto<ServerConfig>>::Error>
type Acceptor = QuinnAcceptor<Pin<Box<dyn Stream<Item = C> + Send>>, C, <C as TryInto<ServerConfig>>::Error>
Acceptor type.
Source§async fn try_bind(
self,
) -> Result<<QuinnListener<S, C, T, E> as Listener>::Acceptor, Error>
async fn try_bind( self, ) -> Result<<QuinnListener<S, C, T, E> as Listener>::Acceptor, Error>
Bind and returns acceptor.
Auto Trait Implementations§
impl<S, C, T, E> Freeze for QuinnListener<S, C, T, E>
impl<S, C, T, E> RefUnwindSafe for QuinnListener<S, C, T, E>
impl<S, C, T, E> Send for QuinnListener<S, C, T, E>
impl<S, C, T, E> Sync for QuinnListener<S, C, T, E>
impl<S, C, T, E> Unpin for QuinnListener<S, C, T, E>
impl<S, C, T, E> UnwindSafe for QuinnListener<S, C, T, E>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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