Skip to content

Gio.PollableOutputStreamInterface

record (struct)

The interface for pollable output streams.

The default implementation of can_poll always returns True.

The default implementation of write_nonblocking calls PollableOutputStream.is_writable, and then calls OutputStream.write if it returns True. This means you only need to override it if it is possible that your is_writable implementation may return True when the stream is not actually writable.

The default implementation of writev_nonblocking calls PollableOutputStream.write_nonblocking for each vector, and converts its return value and error (if set) to a PollableReturn. You should override this where possible to avoid having to allocate a GLib.Error to return IOErrorEnum.WOULD_BLOCK.

Properties

g_iface

g_iface: GObject.TypeInterface  # read/write

can_poll

can_poll: Any  # read/write

is_writable

is_writable: Any  # read/write

create_source

create_source: Any  # read/write

write_nonblocking

write_nonblocking: Any  # read/write

writev_nonblocking

writev_nonblocking: Any  # read/write