[][src]Enum gio::SocketProtocol

#[non_exhaustive]pub enum SocketProtocol {
    // 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.

The protocol type is unknown


The default protocol for the family/type


TCP over IP


UDP over IP


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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

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

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.