pub struct TcpListener<const N: usize, const L: usize> { /* private fields */ }Implementations§
Source§impl<const N: usize, const L: usize> TcpListener<N, L>
impl<const N: usize, const L: usize> TcpListener<N, L>
pub fn new() -> Self
pub fn bind(&mut self, handle: SocketHandle, port: u16) -> Result<(), ()>
pub fn incoming( &mut self, port: u16, ) -> Option<&mut Queue<(SocketHandle, SocketAddr), L>>
pub fn available(&mut self, handle: SocketHandle) -> Result<bool, ()>
pub fn accept( &mut self, handle: SocketHandle, ) -> Result<(SocketHandle, SocketAddr), ()>
Auto Trait Implementations§
impl<const N: usize, const L: usize> !Freeze for TcpListener<N, L>
impl<const N: usize, const L: usize> !RefUnwindSafe for TcpListener<N, L>
impl<const N: usize, const L: usize> Send for TcpListener<N, L>
impl<const N: usize, const L: usize> !Sync for TcpListener<N, L>
impl<const N: usize, const L: usize> Unpin for TcpListener<N, L>
impl<const N: usize, const L: usize> UnwindSafe for TcpListener<N, L>
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