Struct async_socket::State [−][src]
Expand description
A central shared state of the socket where all socket data are stored.
Fields
buf: Vec<u8>
A buffer holding buffered bytes of the socket.
waker: Option<Waker>
The Waker reference of the root socket. The socket stores this reference to enable async notifications across cloned socket instances.
chunk_size: usize
The maximum size of a chunk returned by a stream.
Implementations
Returns a new instance with a specific chunk size.