module Gio::PollableOutputStream
Overview
GPollableOutputStream
is implemented by Gio::OutputStream
s that
can be polled for readiness to write. This can be used when
interfacing with a non-GIO API that expects
UNIX-file-descriptor-style asynchronous I/O rather than GIO-style.
Some classes may implement GPollableOutputStream
but have only certain
instances of that class be pollable. If Gio::PollableOutputStream#can_poll
returns false, then the behavior of other GPollableOutputStream
methods is
undefined.
Direct including types
Defined in:
lib/gi-crystal/src/auto/gio-2.0/pollable_output_stream.crConstructors
-
.cast(obj : GObject::Object) : self
Cast a
GObject::Object
toself
, throws aTypeCastError
if the cast can't be made.
Class Method Summary
Instance Method Summary
- #can_poll : Bool
- #create_source(cancellable : Gio::Cancellable | Nil) : GLib::Source
- #is_writable : Bool
- #to_unsafe
- #write_nonblocking(buffer : Bytes, cancellable : Gio::Cancellable | Nil) : Int64
- #writev_nonblocking(vectors : Enumerable(Gio::OutputVector), cancellable : Gio::Cancellable | Nil) : Gio::PollableReturn
Constructor Detail
Class Method Detail
Instance Method Detail
def writev_nonblocking(vectors : Enumerable(Gio::OutputVector), cancellable : Gio::Cancellable | Nil) : Gio::PollableReturn
#