[−][src]Struct breadx::AuthInfo
Information needed to authorize a user to use an X11 connection.
Fields
name: String
data: Vec<u8>
family: u16
address: 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]
reader: &mut R
) -> Option<Vec<Self>>
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
Auto Trait Implementations
impl RefUnwindSafe for AuthInfo
[src]
impl Send for AuthInfo
[src]
impl Sync for AuthInfo
[src]
impl Unpin for AuthInfo
[src]
impl UnwindSafe for AuthInfo
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,