Struct hematite_server::packet::play::clientbound::TimeUpdate [] [src]

pub struct TimeUpdate {
    pub world_age: i64::Clean,
    pub time_of_day: i64::Clean,
}

Fields

world_age
time_of_day

Trait Implementations

impl Protocol for TimeUpdate

type Clean = Self

fn proto_len(value: &TimeUpdate) -> usize

fn proto_encode(value: &TimeUpdate, dst: &mut Write) -> Result<()>

fn proto_decode(src: &mut Read) -> Result<TimeUpdate>

impl PacketWrite for TimeUpdate

fn inner_len(&self) -> usize

fn inner_encode(&self, dst: &mut Write) -> Result<()>

fn write(&self, dst: &mut Write) -> Result<()>

Derived Implementations

impl Debug for TimeUpdate

fn fmt(&self, __arg_0: &mut Formatter) -> Result