[]Struct gio::InetSocketAddress

pub struct InetSocketAddress(_, _);

An IPv4 or IPv6 socket address; that is, the combination of a InetAddress and a port number.

Implements

InetSocketAddressExt, SocketAddressExt, glib::object::ObjectExt, SocketConnectableExt

Implementations

impl InetSocketAddress[src]

pub fn new<P: IsA<InetAddress>>(address: &P, port: u16) -> InetSocketAddress[src]

Creates a new InetSocketAddress for address and port.

address

a InetAddress

port

a port number

Returns

a new InetSocketAddress

pub fn from_string(address: &str, port: u32) -> InetSocketAddress[src]

Trait Implementations

impl Clone for InetSocketAddress

impl Debug for InetSocketAddress

impl Display for InetSocketAddress[src]

impl Eq for InetSocketAddress

impl Hash for InetSocketAddress

impl IsA<InetSocketAddress> for ProxyAddress

impl IsA<SocketAddress> for InetSocketAddress

impl IsA<SocketConnectable> for InetSocketAddress

impl Ord for InetSocketAddress

impl<T: ObjectType> PartialEq<T> for InetSocketAddress

impl<T: ObjectType> PartialOrd<T> for InetSocketAddress

impl Send for InetSocketAddress[src]

impl StaticType for InetSocketAddress

impl Sync for InetSocketAddress[src]

Auto Trait Implementations

impl RefUnwindSafe for InetSocketAddress

impl Unpin for InetSocketAddress

impl UnwindSafe for InetSocketAddress

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 

impl<T> Cast for T where
    T: ObjectType, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType, 

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.