Gio.PollableInputStreamInterface¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
can_poll |
r |
Checks if the |
|
create_source |
r |
Creates a |
|
g_iface |
r |
The parent interface. |
|
is_readable |
r |
Checks if the stream is readable |
|
read_nonblocking |
r |
Does a non-blocking read or returns |
Methods¶
None
Details¶
- class Gio.PollableInputStreamInterface¶
The interface for pollable input streams.
The default implementation of can_poll always returns
True
.The default implementation of read_nonblocking calls
Gio.PollableInputStream.is_readable
(), and then callsGio.InputStream.read
() if it returnsTrue
. This means you only need to override it if it is possible that your is_readable implementation may returnTrue
when the stream is not actually readable.New in version 2.28.