pub struct TcpServer { /* private fields */ }Implementations§
Source§impl TcpServer
impl TcpServer
Sourcepub fn start(
info: StreamInfo,
send_buffer: Arc<SendBuffer>,
chunk_size: i32,
) -> TcpPorts
pub fn start( info: StreamInfo, send_buffer: Arc<SendBuffer>, chunk_size: i32, ) -> TcpPorts
Start the TCP server on both IPv4 and IPv6. Returns ports and a shared shutdown handle.
Auto Trait Implementations§
impl Freeze for TcpServer
impl !RefUnwindSafe for TcpServer
impl Send for TcpServer
impl Sync for TcpServer
impl Unpin for TcpServer
impl UnsafeUnpin for TcpServer
impl !UnwindSafe for TcpServer
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