pub(crate) fn poll_send(socket: &UnixSeqpacket, cx: &mut Context, buffer: &[u8]) -> Poll<std::io::Result<usize>> {
	let mut ready_guard = ready!(socket.io.poll_write_ready(cx)?);

	match socket.io.get_ref().send(buffer) {
		Err(ref e) if e.kind() == std::io::ErrorKind::WouldBlock => {
			ready_guard.clear_ready();
			Poll::Pending
		},
		x => Poll::Ready(x),
	}
}
/// Send data on the socket to the connected peer without blocking.
Send data on the socket to the connected peer without blocking.
Send data on the socket to the connected peer without blocking .
pub(crate) fn poll_send(socket: &UnixSeqpacket, cx: &mut Context, buffer: &[u8]) -> Poll<std::io::Result<usize>> {
	let mut ready_guard = ready!(socket.io.poll_write_ready(cx)?);
	match socket.io.get_ref().send(buffer) {
		Err(ref e) if e.kind() == std::io::ErrorKind::WouldBlock => {
			ready_guard.clear_ready();
			Poll::Pending
		},
		x => Poll::Ready(x),
	}
}
pub ( crate ) fn poll_send ( socket : & UnixSeqpacket , cx : & mut Context , buffer : & [ u8 ] ) -> Poll < std :: io :: Result < usize > > { let mut ready_guard = ready ! ( socket io poll_write_ready ( cx ) ) ; match socket . io . get_ref ( ) . send ( buffer ) { Err ( ref e ) if e . kind ( ) == std :: io :: ErrorKind :: WouldBlock => { ready_guard . clear_ready ( ) ; Poll :: Pending } , x => Poll :: Ready ( x ) , } }
Send data on the socket to the connected peer without blocking.
Send data on the socket to the connected peer without blocking .
socket
&UnixSeqpacket
cx
&mut Context
buffer
&[u8]