[][src]Struct breadx::AuthInfo

pub struct AuthInfo {
    pub name: String,
    pub data: Vec<u8>,
    pub family: u16,
    pub address: Vec<u8>,
    pub number: Vec<u8>,
}

Information needed to authorize a user to use an X11 connection.

Fields

name: Stringdata: Vec<u8>family: u16address: Vec<u8>number: Vec<u8>

Implementations

impl AuthInfo[src]

#[must_use]pub fn from_stream<R: Read>(reader: &mut R) -> Option<Vec<Self>>[src]

Reads in the auth info from the given reading stream.

#[must_use]pub async fn from_stream_async<R: AsyncRead + Unpin>(
    reader: &mut R
) -> Option<Vec<Self>>
[src]

Reads in the auth info from the given reading stream, async redox.

#[must_use]pub fn from_xauthority() -> Option<Vec<Self>>[src]

Reads in the auth info from the file specified by the XAUTHORITY environment variable.

#[must_use]pub async fn from_xauthority_async() -> Option<Vec<Self>>[src]

Reads in the auth info from the file specified by the XAuthority variable, async redox.

Trait Implementations

impl Debug for AuthInfo[src]

impl Default for AuthInfo[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.