PacketReadable

Trait PacketReadable 

Source
pub trait PacketReadable: Sized {
    // Required method
    fn read<'life0, 'async_trait>(
        input: &'life0 mut (impl 'async_trait + InputPacketBytes),
    ) -> Pin<Box<dyn Future<Output = PacketReadableResult<Self>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn read<'life0, 'async_trait>( input: &'life0 mut (impl 'async_trait + InputPacketBytes), ) -> Pin<Box<dyn Future<Output = PacketReadableResult<Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl PacketReadable for ComponentType

Source§

fn read<'life0, 'async_trait>( input: &'life0 mut (impl 'async_trait + InputPacketBytes), ) -> Pin<Box<dyn Future<Output = PacketReadableResult<Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl PacketReadable for bool

Source§

fn read<'life0, 'async_trait>( input: &'life0 mut (impl 'async_trait + InputPacketBytes), ) -> Pin<Box<dyn Future<Output = PacketReadableResult<Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl PacketReadable for f32

Source§

fn read<'life0, 'async_trait>( input: &'life0 mut (impl 'async_trait + InputPacketBytes), ) -> Pin<Box<dyn Future<Output = PacketReadableResult<Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl PacketReadable for f64

Source§

fn read<'life0, 'async_trait>( input: &'life0 mut (impl 'async_trait + InputPacketBytes), ) -> Pin<Box<dyn Future<Output = PacketReadableResult<Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl PacketReadable for i8

Source§

fn read<'life0, 'async_trait>( input: &'life0 mut (impl 'async_trait + InputPacketBytes), ) -> Pin<Box<dyn Future<Output = PacketReadableResult<Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl PacketReadable for i16

Source§

fn read<'life0, 'async_trait>( input: &'life0 mut (impl 'async_trait + InputPacketBytes), ) -> Pin<Box<dyn Future<Output = PacketReadableResult<Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl PacketReadable for i32

Source§

fn read<'life0, 'async_trait>( input: &'life0 mut (impl 'async_trait + InputPacketBytes), ) -> Pin<Box<dyn Future<Output = PacketReadableResult<Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl PacketReadable for i64

Source§

fn read<'life0, 'async_trait>( input: &'life0 mut (impl 'async_trait + InputPacketBytes), ) -> Pin<Box<dyn Future<Output = PacketReadableResult<Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl PacketReadable for i128

Source§

fn read<'life0, 'async_trait>( input: &'life0 mut (impl 'async_trait + InputPacketBytes), ) -> Pin<Box<dyn Future<Output = PacketReadableResult<Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl PacketReadable for u8

Source§

fn read<'life0, 'async_trait>( input: &'life0 mut (impl 'async_trait + InputPacketBytes), ) -> Pin<Box<dyn Future<Output = PacketReadableResult<Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl PacketReadable for u16

Source§

fn read<'life0, 'async_trait>( input: &'life0 mut (impl 'async_trait + InputPacketBytes), ) -> Pin<Box<dyn Future<Output = PacketReadableResult<Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl PacketReadable for u32

Source§

fn read<'life0, 'async_trait>( input: &'life0 mut (impl 'async_trait + InputPacketBytes), ) -> Pin<Box<dyn Future<Output = PacketReadableResult<Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl PacketReadable for u64

Source§

fn read<'life0, 'async_trait>( input: &'life0 mut (impl 'async_trait + InputPacketBytes), ) -> Pin<Box<dyn Future<Output = PacketReadableResult<Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl PacketReadable for u128

Source§

fn read<'life0, 'async_trait>( input: &'life0 mut (impl 'async_trait + InputPacketBytes), ) -> Pin<Box<dyn Future<Output = PacketReadableResult<Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl PacketReadable for String

Source§

fn read<'life0, 'async_trait>( input: &'life0 mut (impl 'async_trait + InputPacketBytes), ) -> Pin<Box<dyn Future<Output = PacketReadableResult<Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl PacketReadable for Identifier

Source§

fn read<'life0, 'async_trait>( input: &'life0 mut (impl 'async_trait + InputPacketBytes), ) -> Pin<Box<dyn Future<Output = PacketReadableResult<Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl PacketReadable for Uuid

Source§

fn read<'life0, 'async_trait>( input: &'life0 mut (impl 'async_trait + InputPacketBytes), ) -> Pin<Box<dyn Future<Output = PacketReadableResult<Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl<T: PacketReadable> PacketReadable for Option<T>

Source§

fn read<'life0, 'async_trait>( input: &'life0 mut (impl 'async_trait + InputPacketBytes), ) -> Pin<Box<dyn Future<Output = PacketReadableResult<Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§