pub struct OpenBook { /* private fields */ }Implementations§
Source§impl OpenBook
impl OpenBook
Sourcepub fn deserialize<R: Read>(r: &mut R) -> Result<ClientboundPacket>
pub fn deserialize<R: Read>(r: &mut R) -> Result<ClientboundPacket>
Deserializes a Read type into a packet. You usually won’t need to use this.
Sourcepub fn to_u8(&self) -> Result<Vec<u8>>
pub fn to_u8(&self) -> Result<Vec<u8>>
Serializes the packet into Vec
pub fn new(hand: i32) -> ClientboundPacket
Trait Implementations§
impl StructuralPartialEq for OpenBook
Auto Trait Implementations§
impl Freeze for OpenBook
impl RefUnwindSafe for OpenBook
impl Send for OpenBook
impl Sync for OpenBook
impl Unpin for OpenBook
impl UnsafeUnpin for OpenBook
impl UnwindSafe for OpenBook
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more