[][src]Struct breadx::client_message_data::ClientMessageData

#[repr(transparent)]pub struct ClientMessageData { /* fields omitted */ }

The data returned from a client message. This is dictated by protocol to be five 32-bit integers in length; however, it could also represent 10 16-bit integers or 20 8-bit integers. It is usually represented as a union; however, the bytes, shorts, and longs methods can be used to access each of these representations.

Implementations

impl ClientMessageData[src]

#[must_use]pub fn bytes(&self) -> &[u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Get the bytes assocated with this sequence.

#[must_use]pub fn shorts(&self) -> &[u16]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Get the short integers assocated with this sequence.

#[must_use]pub fn longs(&self) -> &[u32]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Get the long integers associated with this sequence.

#[must_use]pub fn bytes_mut(&mut self) -> &mut [u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Get a mutable reference to the bytes associated with this sequence.

#[must_use]pub fn shorts_mut(&mut self) -> &mut [u16]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Get a mutable reference to the short integers associated with this sequence.

#[must_use]pub fn longs_mut(&mut self) -> &mut [u32]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Get a mutable reference to the long integers associated with this sequence.

Trait Implementations

impl AsByteSequence for ClientMessageData[src]

impl Clone for ClientMessageData[src]

impl Debug for ClientMessageData[src]

impl Default for ClientMessageData[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.