[]Struct gio::TlsClientConnection

pub struct TlsClientConnection(_, _);

TlsClientConnection is the client-side subclass of TlsConnection, representing a client-side TLS connection.

Implements

TlsClientConnectionExt, TlsConnectionExt, IOStreamExt, glib::object::ObjectExt

Methods

impl TlsClientConnection[src]

pub fn new<P: IsA<IOStream>, Q: IsA<SocketConnectable>>(
    base_io_stream: &P,
    server_identity: Option<&Q>
) -> Result<TlsClientConnection, Error>
[src]

Creates a new TlsClientConnection wrapping base_io_stream (which must have pollable input and output streams) which is assumed to communicate with the server identified by server_identity.

See the documentation for TlsConnection:base-io-stream for restrictions on when application code can run operations on the base_io_stream after this function has returned.

base_io_stream

the IOStream to wrap

server_identity

the expected identity of the server

Returns

the new TlsClientConnection, or None on error

Trait Implementations

impl Clone for TlsClientConnection

impl Debug for TlsClientConnection

impl Display for TlsClientConnection[src]

impl Eq for TlsClientConnection

impl Hash for TlsClientConnection

impl IsA<IOStream> for TlsClientConnection

impl IsA<TlsConnection> for TlsClientConnection

impl Ord for TlsClientConnection

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

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

impl StaticType for TlsClientConnection

Auto Trait Implementations

impl RefUnwindSafe for TlsClientConnection

impl !Send for TlsClientConnection

impl !Sync for TlsClientConnection

impl Unpin for TlsClientConnection

impl UnwindSafe for TlsClientConnection

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>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

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
[src]

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

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

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

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

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[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
[src]

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

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

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.