#[repr(C)]pub struct _GSocketConnectableIface {
pub g_iface: GTypeInterface,
pub enumerate: Option<unsafe extern "C" fn(connectable: *mut GSocketConnectable) -> *mut GSocketAddressEnumerator>,
pub proxy_enumerate: Option<unsafe extern "C" fn(connectable: *mut GSocketConnectable) -> *mut GSocketAddressEnumerator>,
pub to_string: Option<unsafe extern "C" fn(connectable: *mut GSocketConnectable) -> *mut gchar>,
}
Expand description
GSocketConnectableIface: @g_iface: The parent interface. @enumerate: Creates a #GSocketAddressEnumerator @proxy_enumerate: Creates a #GProxyAddressEnumerator @to_string: Format the connectable’s address as a string for debugging. Implementing this is optional. (Since: 2.48)
Provides an interface for returning a #GSocketAddressEnumerator and #GProxyAddressEnumerator
Fields§
§g_iface: GTypeInterface
§enumerate: Option<unsafe extern "C" fn(connectable: *mut GSocketConnectable) -> *mut GSocketAddressEnumerator>
§proxy_enumerate: Option<unsafe extern "C" fn(connectable: *mut GSocketConnectable) -> *mut GSocketAddressEnumerator>
§to_string: Option<unsafe extern "C" fn(connectable: *mut GSocketConnectable) -> *mut gchar>
Trait Implementations§
Source§impl Clone for _GSocketConnectableIface
impl Clone for _GSocketConnectableIface
Source§fn clone(&self) -> _GSocketConnectableIface
fn clone(&self) -> _GSocketConnectableIface
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for _GSocketConnectableIface
impl Debug for _GSocketConnectableIface
Source§impl PartialEq for _GSocketConnectableIface
impl PartialEq for _GSocketConnectableIface
impl Copy for _GSocketConnectableIface
impl Eq for _GSocketConnectableIface
impl StructuralPartialEq for _GSocketConnectableIface
Auto Trait Implementations§
impl Freeze for _GSocketConnectableIface
impl RefUnwindSafe for _GSocketConnectableIface
impl Send for _GSocketConnectableIface
impl Sync for _GSocketConnectableIface
impl Unpin for _GSocketConnectableIface
impl UnwindSafe for _GSocketConnectableIface
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more