gio/auto/
native_socket_address.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use crate::{ffi, SocketAddress, SocketConnectable};

glib::wrapper! {
    /// A socket address of some unknown native type.
    ///
    /// This corresponds to a general `struct sockaddr` of a type not otherwise
    /// handled by GLib.
    ///
    /// # Implements
    ///
    /// [`SocketAddressExt`][trait@crate::prelude::SocketAddressExt], [`trait@glib::ObjectExt`], [`SocketConnectableExt`][trait@crate::prelude::SocketConnectableExt]
    #[doc(alias = "GNativeSocketAddress")]
    pub struct NativeSocketAddress(Object<ffi::GNativeSocketAddress, ffi::GNativeSocketAddressClass>) @extends SocketAddress, @implements SocketConnectable;

    match fn {
        type_ => || ffi::g_native_socket_address_get_type(),
    }
}

impl NativeSocketAddress {
    pub const NONE: Option<&'static NativeSocketAddress> = None;

    //#[doc(alias = "g_native_socket_address_new")]
    //pub fn new(native: /*Unimplemented*/Option<Basic: Pointer>, len: usize) -> NativeSocketAddress {
    //    unsafe { TODO: call ffi:g_native_socket_address_new() }
    //}
}