[][src]Trait basin2_protocol::network::McProtoBase

pub trait McProtoBase {
    fn get_mc_var_int(
        &mut self
    ) -> Result<i32, Box<dyn Error + 'static + Sync + Send>>;
fn get_mc_var_long(
        &mut self
    ) -> Result<i64, Box<dyn Error + 'static + Sync + Send>>;
fn get_mc_string(
        &mut self,
        bound: i32
    ) -> Result<String, Box<dyn Error + 'static + Sync + Send>>;
fn get_mc_u8(
        &mut self
    ) -> Result<u8, Box<dyn Error + 'static + Sync + Send>>;
fn get_mc_i8(
        &mut self
    ) -> Result<i8, Box<dyn Error + 'static + Sync + Send>>;
fn get_mc_bool(
        &mut self
    ) -> Result<bool, Box<dyn Error + 'static + Sync + Send>>;
fn get_mc_i16(
        &mut self
    ) -> Result<i16, Box<dyn Error + 'static + Sync + Send>>;
fn get_mc_i64(
        &mut self
    ) -> Result<i64, Box<dyn Error + 'static + Sync + Send>>;
fn get_mc_f64(
        &mut self
    ) -> Result<f64, Box<dyn Error + 'static + Sync + Send>>;
fn get_mc_f32(
        &mut self
    ) -> Result<f32, Box<dyn Error + 'static + Sync + Send>>;
fn get_mc_uuid(
        &mut self
    ) -> Result<Uuid, Box<dyn Error + 'static + Sync + Send>>;
fn get_mc_i32(
        &mut self
    ) -> Result<i32, Box<dyn Error + 'static + Sync + Send>>;
fn get_mc_nbt(
        &mut self
    ) -> Result<Nbt, Box<dyn Error + 'static + Sync + Send>>;
fn get_mc_u16(
        &mut self
    ) -> Result<u16, Box<dyn Error + 'static + Sync + Send>>;
fn get_mc_byte_array(
        &mut self
    ) -> Result<Vec<u8>, Box<dyn Error + 'static + Sync + Send>>;
fn get_mc_byte_array_bounded(
        &mut self,
        bound: i32
    ) -> Result<Vec<u8>, Box<dyn Error + 'static + Sync + Send>>;
fn get_mc_enum<T>(
        &mut self
    ) -> Result<T, Box<dyn Error + 'static + Sync + Send>>
    where
        T: FromPrimitive
;
fn get_mc_enum_i32<T>(
        &mut self
    ) -> Result<T, Box<dyn Error + 'static + Sync + Send>>
    where
        T: FromPrimitive
;
fn get_mc_enum_u8<T>(
        &mut self
    ) -> Result<T, Box<dyn Error + 'static + Sync + Send>>
    where
        T: FromPrimitive
;
fn set_mc_var_int(&mut self, value: i32);
fn set_mc_var_long(&mut self, value: i64);
fn set_mc_string(&mut self, value: String);
fn set_mc_u8(&mut self, value: u8);
fn set_mc_i8(&mut self, value: i8);
fn set_mc_bool(&mut self, value: bool);
fn set_mc_i16(&mut self, value: i16);
fn set_mc_i64(&mut self, value: i64);
fn set_mc_f64(&mut self, value: f64);
fn set_mc_f32(&mut self, value: f32);
fn set_mc_uuid(&mut self, value: Uuid);
fn set_mc_i32(&mut self, value: i32);
fn set_mc_nbt(&mut self, value: Nbt);
fn set_mc_u16(&mut self, value: u16);
fn set_mc_byte_array(&mut self, value: Vec<u8>);
fn clone_bounded(
        &mut self,
        bound: i32
    ) -> Result<Self, Box<dyn Error + 'static + Sync + Send>>;
fn read_primitive_slice<T>(
        &mut self,
        length: usize
    ) -> Result<Vec<T>, Box<dyn Error + 'static + Sync + Send>>
    where
        T: Clone
;
fn write_primitive_slice<T>(&mut self, data: &[T]);
fn display(&self) -> String; }

Required methods

fn get_mc_var_int(
    &mut self
) -> Result<i32, Box<dyn Error + 'static + Sync + Send>>

fn get_mc_var_long(
    &mut self
) -> Result<i64, Box<dyn Error + 'static + Sync + Send>>

fn get_mc_string(
    &mut self,
    bound: i32
) -> Result<String, Box<dyn Error + 'static + Sync + Send>>

fn get_mc_u8(&mut self) -> Result<u8, Box<dyn Error + 'static + Sync + Send>>

fn get_mc_i8(&mut self) -> Result<i8, Box<dyn Error + 'static + Sync + Send>>

fn get_mc_bool(
    &mut self
) -> Result<bool, Box<dyn Error + 'static + Sync + Send>>

fn get_mc_i16(&mut self) -> Result<i16, Box<dyn Error + 'static + Sync + Send>>

fn get_mc_i64(&mut self) -> Result<i64, Box<dyn Error + 'static + Sync + Send>>

fn get_mc_f64(&mut self) -> Result<f64, Box<dyn Error + 'static + Sync + Send>>

fn get_mc_f32(&mut self) -> Result<f32, Box<dyn Error + 'static + Sync + Send>>

fn get_mc_uuid(
    &mut self
) -> Result<Uuid, Box<dyn Error + 'static + Sync + Send>>

fn get_mc_i32(&mut self) -> Result<i32, Box<dyn Error + 'static + Sync + Send>>

fn get_mc_nbt(&mut self) -> Result<Nbt, Box<dyn Error + 'static + Sync + Send>>

fn get_mc_u16(&mut self) -> Result<u16, Box<dyn Error + 'static + Sync + Send>>

fn get_mc_byte_array(
    &mut self
) -> Result<Vec<u8>, Box<dyn Error + 'static + Sync + Send>>

fn get_mc_byte_array_bounded(
    &mut self,
    bound: i32
) -> Result<Vec<u8>, Box<dyn Error + 'static + Sync + Send>>

fn get_mc_enum<T>(
    &mut self
) -> Result<T, Box<dyn Error + 'static + Sync + Send>> where
    T: FromPrimitive

fn get_mc_enum_i32<T>(
    &mut self
) -> Result<T, Box<dyn Error + 'static + Sync + Send>> where
    T: FromPrimitive

fn get_mc_enum_u8<T>(
    &mut self
) -> Result<T, Box<dyn Error + 'static + Sync + Send>> where
    T: FromPrimitive

fn set_mc_var_int(&mut self, value: i32)

fn set_mc_var_long(&mut self, value: i64)

fn set_mc_string(&mut self, value: String)

fn set_mc_u8(&mut self, value: u8)

fn set_mc_i8(&mut self, value: i8)

fn set_mc_bool(&mut self, value: bool)

fn set_mc_i16(&mut self, value: i16)

fn set_mc_i64(&mut self, value: i64)

fn set_mc_f64(&mut self, value: f64)

fn set_mc_f32(&mut self, value: f32)

fn set_mc_uuid(&mut self, value: Uuid)

fn set_mc_i32(&mut self, value: i32)

fn set_mc_nbt(&mut self, value: Nbt)

fn set_mc_u16(&mut self, value: u16)

fn set_mc_byte_array(&mut self, value: Vec<u8>)

fn clone_bounded(
    &mut self,
    bound: i32
) -> Result<Self, Box<dyn Error + 'static + Sync + Send>>

fn read_primitive_slice<T>(
    &mut self,
    length: usize
) -> Result<Vec<T>, Box<dyn Error + 'static + Sync + Send>> where
    T: Clone

fn write_primitive_slice<T>(&mut self, data: &[T])

fn display(&self) -> String

Loading content...

Implementations on Foreign Types

impl McProtoBase for BytesMut[src]

Loading content...

Implementors

Loading content...