pub struct CloseWindow {
pub window_id: u8,
}Expand description
close_window (serverbound play, id 0x0d).
Fields§
§window_id: u8windowId
Trait Implementations§
Source§impl Clone for CloseWindow
impl Clone for CloseWindow
Source§impl Debug for CloseWindow
impl Debug for CloseWindow
Source§impl Decode for CloseWindow
impl Decode for CloseWindow
Source§fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
Decodes one value, advancing the reader past it.
Source§impl Encode for CloseWindow
impl Encode for CloseWindow
Source§fn encode(&self, w: &mut BytesMut) -> EncodeResult
fn encode(&self, w: &mut BytesMut) -> EncodeResult
Appends the encoding of
self to w.Source§impl From<CloseWindow> for ServerboundPlayPacket
impl From<CloseWindow> for ServerboundPlayPacket
Source§fn from(p: CloseWindow) -> Self
fn from(p: CloseWindow) -> Self
Converts to this type from the input type.
Source§impl Generate for CloseWindow
Available on crate feature testgen only.
impl Generate for CloseWindow
Available on crate feature
testgen only.Source§impl Packet for CloseWindow
impl Packet for CloseWindow
Source§impl PartialEq for CloseWindow
impl PartialEq for CloseWindow
impl StructuralPartialEq for CloseWindow
Auto Trait Implementations§
impl Freeze for CloseWindow
impl RefUnwindSafe for CloseWindow
impl Send for CloseWindow
impl Sync for CloseWindow
impl Unpin for CloseWindow
impl UnsafeUnpin for CloseWindow
impl UnwindSafe for CloseWindow
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