pub struct ClientboundCloseWindow { /* private fields */ }Implementations§
Source§impl ClientboundCloseWindow
impl ClientboundCloseWindow
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(window_id: u8) -> ClientboundPacket
Sourcepub fn get_window_id(&self) -> &u8
pub fn get_window_id(&self) -> &u8
Get the window ID
Trait Implementations§
Source§impl Clone for ClientboundCloseWindow
impl Clone for ClientboundCloseWindow
Source§fn clone(&self) -> ClientboundCloseWindow
fn clone(&self) -> ClientboundCloseWindow
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClientboundCloseWindow
impl Debug for ClientboundCloseWindow
Source§impl PartialEq for ClientboundCloseWindow
impl PartialEq for ClientboundCloseWindow
impl StructuralPartialEq for ClientboundCloseWindow
Auto Trait Implementations§
impl Freeze for ClientboundCloseWindow
impl RefUnwindSafe for ClientboundCloseWindow
impl Send for ClientboundCloseWindow
impl Sync for ClientboundCloseWindow
impl Unpin for ClientboundCloseWindow
impl UnsafeUnpin for ClientboundCloseWindow
impl UnwindSafe for ClientboundCloseWindow
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