struct Gio::DBusConnection::ClosedSignal
- Gio::DBusConnection::ClosedSignal
- GObject::Signal
- Struct
- Value
- Object
Overview
Emitted when the connection is closed.
The cause of this event can be
-
If g_dbus_connection_close() is called. In this case @remote_peer_vanished is set to
false
and @error isnil
. -
If the remote peer closes the connection. In this case @remote_peer_vanished is set to
true
and @error is set. -
If the remote peer sends invalid or malformed data. In this case @remote_peer_vanished is set to
false
and @error is set.
Upon receiving this signal, you should give up your reference to @connection. You are guaranteed that this signal is emitted only once.
Defined in:
lib/gi-crystal/src/auto/gio-2.0/d_bus_connection.crInstance Method Summary
- #connect(*, after : Bool = false, &block : Proc(Bool, GLib::Error?, Nil)) : GObject::SignalConnection
- #connect(handler : Proc(Bool, GLib::Error?, Nil), *, after : Bool = false) : GObject::SignalConnection
- #connect(handler : Proc(Gio::DBusConnection, Bool, GLib::Error?, Nil), *, after : Bool = false) : GObject::SignalConnection
- #emit(remote_peer_vanished : Bool, error : GLib::Error?) : Nil
-
#name : String
The signal name
Instance methods inherited from struct GObject::Signal
[](detail : String) : self
[],
name : String
name
Constructor methods inherited from struct GObject::Signal
new(source : GObject::Object, detail : String? = nil)
new
Instance Method Detail
def connect(*, after : Bool = false, &block : Proc(Bool, GLib::Error?, Nil)) : GObject::SignalConnection
#
def connect(handler : Proc(Bool, GLib::Error?, Nil), *, after : Bool = false) : GObject::SignalConnection
#
def connect(handler : Proc(Gio::DBusConnection, Bool, GLib::Error?, Nil), *, after : Bool = false) : GObject::SignalConnection
#