[−][src]Struct breadx::client_message_data::ClientMessageData
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]ⓘ[src]
Get the bytes assocated with this sequence.
#[must_use]pub fn shorts(&self) -> &[u16]ⓘ[src]
Get the short integers assocated with this sequence.
#[must_use]pub fn longs(&self) -> &[u32]ⓘ[src]
Get the long integers associated with this sequence.
#[must_use]pub fn bytes_mut(&mut self) -> &mut [u8]ⓘ[src]
Get a mutable reference to the bytes associated with this sequence.
#[must_use]pub fn shorts_mut(&mut self) -> &mut [u16]ⓘ[src]
Get a mutable reference to the short integers associated with this sequence.
#[must_use]pub fn longs_mut(&mut self) -> &mut [u32]ⓘ[src]
Get a mutable reference to the long integers associated with this sequence.
Trait Implementations
impl AsByteSequence for ClientMessageData[src]
pub fn size(&self) -> usize[src]
pub fn as_bytes(&self, bytes: &mut [u8]) -> usize[src]
pub fn from_bytes(bytes: &[u8]) -> Option<(Self, usize)>[src]
impl Clone for ClientMessageData[src]
pub fn clone(&self) -> ClientMessageData[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for ClientMessageData[src]
impl Default for ClientMessageData[src]
pub fn default() -> ClientMessageData[src]
Auto Trait Implementations
impl RefUnwindSafe for ClientMessageData
impl Send for ClientMessageData
impl Sync for ClientMessageData
impl Unpin for ClientMessageData
impl UnwindSafe for ClientMessageData
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> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
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>,