Struct x11rb::rust_connection::DefaultStream[][src]

pub struct DefaultStream { /* fields omitted */ }

A wrapper around a TcpStream or UnixStream.

Use by default in RustConnection as stream.

Implementations

impl DefaultStream[src]

pub fn connect(host: &str, protocol: Option<&str>, display: u16) -> Result<Self>[src]

Try to connect to the X11 server described by the given arguments.

pub fn from_tcp_stream(stream: TcpStream) -> Result<Self>[src]

Creates a new Stream from an already connected TcpStream.

The stream will be set in non-blocking mode.

pub fn from_unix_stream(stream: UnixStream) -> Result<Self>[src]

Creates a new Stream from an already connected UnixStream.

The stream will be set in non-blocking mode.

Trait Implementations

impl AsRawFd for DefaultStream[src]

impl Debug for DefaultStream[src]

impl IntoRawFd for DefaultStream[src]

impl Stream for DefaultStream[src]

Auto Trait Implementations

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, 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.