Gio.PollableOutputStreamInterface¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
can_poll |
r |
Checks if the |
|
create_source |
r |
Creates a |
|
g_iface |
r |
The parent interface. |
|
is_writable |
r |
Checks if the stream is writable |
|
write_nonblocking |
r |
Does a non-blocking write or returns |
|
writev_nonblocking |
r |
Does a vectored non-blocking write, or returns |
Methods¶
None
Details¶
- class Gio.PollableOutputStreamInterface¶
The interface for pollable output streams.
The default implementation of can_poll always returns
True
.The default implementation of write_nonblocking calls
Gio.PollableOutputStream.is_writable
(), and then callsGio.OutputStream.write
() if it returnsTrue
. This means you only need to override it if it is possible that your is_writable implementation may returnTrue
when the stream is not actually writable.The default implementation of writev_nonblocking calls
Gio.PollableOutputStream.write_nonblocking
() for each vector, and converts its return value and error (if set) to aGio.PollableReturn
. You should override this where possible to avoid having to allocate aGLib.Error
to returnGio.IOErrorEnum.WOULD_BLOCK
.New in version 2.28.