[][src]Enum rask_engine::network::packet::ResourceData

#[repr(C)]pub enum ResourceData<'a> {
    ResourceVec(&'a [u8]),
    CharacterVec {
        texture_len: u32,
        atlas_len: u32,
        animation_len: u32,
        data: &'a [u8],
    },
}

Variants

ResourceVec(&'a [u8])
CharacterVec

Fields of CharacterVec

texture_len: u32atlas_len: u32animation_len: u32data: &'a [u8]

Implementations

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

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

Trait Implementations

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

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

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

impl<'a> TryFrom<ResourceData<'a>> for Character[src]

type Error = EngineError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'a> RefUnwindSafe for ResourceData<'a>

impl<'a> Send for ResourceData<'a>

impl<'a> Sync for ResourceData<'a>

impl<'a> Unpin for ResourceData<'a>

impl<'a> UnwindSafe for ResourceData<'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.