Struct ublox_sockets::tcp_listener::TcpListener
source · [−]Implementations
sourceimpl<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> !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
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