gio/auto/
native_socket_address.rs

1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir-files (https://github.com/gtk-rs/gir-files)
3// DO NOT EDIT
4
5use crate::{ffi, SocketAddress, SocketConnectable};
6
7glib::wrapper! {
8    /// A socket address of some unknown native type.
9    ///
10    /// This corresponds to a general `struct sockaddr` of a type not otherwise
11    /// handled by GLib.
12    ///
13    /// # Implements
14    ///
15    /// [`SocketAddressExt`][trait@crate::prelude::SocketAddressExt], [`trait@glib::ObjectExt`], [`SocketConnectableExt`][trait@crate::prelude::SocketConnectableExt]
16    #[doc(alias = "GNativeSocketAddress")]
17    pub struct NativeSocketAddress(Object<ffi::GNativeSocketAddress, ffi::GNativeSocketAddressClass>) @extends SocketAddress, @implements SocketConnectable;
18
19    match fn {
20        type_ => || ffi::g_native_socket_address_get_type(),
21    }
22}
23
24impl NativeSocketAddress {
25    pub const NONE: Option<&'static NativeSocketAddress> = None;
26
27    //#[doc(alias = "g_native_socket_address_new")]
28    //pub fn new(native: /*Unimplemented*/Option<Basic: Pointer>, len: usize) -> NativeSocketAddress {
29    //    unsafe { TODO: call ffi:g_native_socket_address_new() }
30    //}
31}