pub struct QuicListener { /* private fields */ }Implementations§
Source§impl QuicListener
impl QuicListener
Sourcepub fn new<A: ToSocketAddrs>(laddrs: A, config: Config) -> Result<Self>
pub fn new<A: ToSocketAddrs>(laddrs: A, config: Config) -> Result<Self>
Create a new QuicListener instance with provided laddrs and config.
Sourcepub fn local_addrs(&self) -> impl Iterator<Item = &SocketAddr>
pub fn local_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Get the QuicListener’s local bound socket address iterator.
pub async fn send(&self) -> Result<(Vec<u8>, SendInfo)>
Trait Implementations§
Source§impl Clone for QuicListener
impl Clone for QuicListener
Source§fn clone(&self) -> QuicListener
fn clone(&self) -> QuicListener
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl QuicListenerBind for QuicListener
impl QuicListenerBind for QuicListener
Source§fn bind<A: ToSocketAddrs + Send>(
laddrs: A,
config: Config,
) -> impl Future<Output = Result<QuicListener>> + Send
fn bind<A: ToSocketAddrs + Send>( laddrs: A, config: Config, ) -> impl Future<Output = Result<QuicListener>> + Send
Create a new QuicListener instance with local addresses bound to
laddrs.Auto Trait Implementations§
impl Freeze for QuicListener
impl !RefUnwindSafe for QuicListener
impl Send for QuicListener
impl Sync for QuicListener
impl Unpin for QuicListener
impl !UnwindSafe for QuicListener
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more