[][src]Enum gio::SocketProtocol

#[non_exhaustive]pub enum SocketProtocol {
    Unknown,
    Default,
    Tcp,
    Udp,
    Sctp,
    // some variants omitted
}

A protocol identifier is specified when creating a Socket, which is a family/type specific identifier, where 0 means the default protocol for the particular family/type.

This enum contains a set of commonly available and used protocols. You can also pass any other identifiers handled by the platform in order to use protocols not listed here.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown

The protocol type is unknown

Default

The default protocol for the family/type

Tcp

TCP over IP

Udp

UDP over IP

Sctp

SCTP over IP

Trait Implementations

impl Clone for SocketProtocol[src]

impl Copy for SocketProtocol[src]

impl Debug for SocketProtocol[src]

impl Display for SocketProtocol[src]

impl Eq for SocketProtocol[src]

impl<'a> FromValue<'a> for SocketProtocol[src]

impl<'a> FromValueOptional<'a> for SocketProtocol[src]

impl Hash for SocketProtocol[src]

impl Ord for SocketProtocol[src]

impl PartialEq<SocketProtocol> for SocketProtocol[src]

impl PartialOrd<SocketProtocol> for SocketProtocol[src]

impl SetValue for SocketProtocol[src]

impl StaticType for SocketProtocol[src]

impl StructuralEq for SocketProtocol[src]

impl StructuralPartialEq for SocketProtocol[src]

Auto Trait Implementations

impl RefUnwindSafe for SocketProtocol

impl Send for SocketProtocol

impl Sync for SocketProtocol

impl Unpin for SocketProtocol

impl UnwindSafe for SocketProtocol

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<T> From<T> for T[src]

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

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.