[]Struct gio::TlsServerConnection

pub struct TlsServerConnection(_, _);

TlsServerConnection is the server-side subclass of TlsConnection, representing a server-side TLS connection.

Implements

TlsServerConnectionExt, TlsConnectionExt, IOStreamExt, glib::object::ObjectExt, IOStreamExtManual

Implementations

impl TlsServerConnection[src]

pub fn new<P: IsA<IOStream>, Q: IsA<TlsCertificate>>(
    base_io_stream: &P,
    certificate: Option<&Q>
) -> Result<TlsServerConnection, Error>
[src]

Creates a new TlsServerConnection wrapping base_io_stream (which must have pollable input and output streams).

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

certificate

the default server certificate, or None

Returns

the new TlsServerConnection, or None on error

Trait Implementations

impl Clone for TlsServerConnection

impl Debug for TlsServerConnection

impl Display for TlsServerConnection[src]

impl Eq for TlsServerConnection

impl Hash for TlsServerConnection

impl IsA<IOStream> for TlsServerConnection

impl IsA<TlsConnection> for TlsServerConnection

impl Ord for TlsServerConnection

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

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

impl StaticType for TlsServerConnection

Auto Trait Implementations

impl RefUnwindSafe for TlsServerConnection

impl !Send for TlsServerConnection

impl !Sync for TlsServerConnection

impl Unpin for TlsServerConnection

impl UnwindSafe for TlsServerConnection

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.