[][src]Struct rask_engine::network::packet::WebSocketPacket

#[repr(C)]pub struct WebSocketPacket<'a> {
    pub op_code: Opcode,
    pub payload: PacketVariant<'a>,
}

Fields

op_code: Opcodepayload: PacketVariant<'a>

Implementations

impl<'a> WebSocketPacket<'a>[src]

pub fn deserialize(buf: &'a [u8]) -> Result<Self, EngineError>[src]

Trait Implementations

impl<'a> Clone for WebSocketPacket<'a>[src]

impl<'a> Debug for WebSocketPacket<'a>[src]

impl<'a> Serialize for WebSocketPacket<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for WebSocketPacket<'a>

impl<'a> Send for WebSocketPacket<'a>

impl<'a> Sync for WebSocketPacket<'a>

impl<'a> Unpin for WebSocketPacket<'a>

impl<'a> UnwindSafe for WebSocketPacket<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<S, T> Collide<[T]> for S where
    T: Collide<S>, 
[src]

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Resource for T where
    T: Any + Send + Sync

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.