pub enum ServerboundConfigurationPacket {
Settings(Settings),
CookieResponse(CookieResponse),
CustomPayload(CustomPayload),
FinishConfiguration(FinishConfiguration),
KeepAlive(KeepAlive),
Pong(Pong),
ResourcePackReceive(ResourcePackReceive),
SelectKnownPacks(SelectKnownPacks),
CustomClickAction(CustomClickAction),
AcceptCodeOfConduct(AcceptCodeOfConduct),
}Expand description
Every Serverbound packet of the Configuration state.
Variants§
Settings(Settings)
settings
CookieResponse(CookieResponse)
cookie_response
CustomPayload(CustomPayload)
custom_payload
FinishConfiguration(FinishConfiguration)
finish_configuration
KeepAlive(KeepAlive)
keep_alive
Pong(Pong)
pong
ResourcePackReceive(ResourcePackReceive)
resource_pack_receive
SelectKnownPacks(SelectKnownPacks)
select_known_packs
CustomClickAction(CustomClickAction)
custom_click_action
AcceptCodeOfConduct(AcceptCodeOfConduct)
accept_code_of_conduct
Implementations§
Trait Implementations§
Source§impl From<AcceptCodeOfConduct<776>> for ServerboundConfigurationPacket
impl From<AcceptCodeOfConduct<776>> for ServerboundConfigurationPacket
Source§fn from(p: AcceptCodeOfConduct) -> Self
fn from(p: AcceptCodeOfConduct) -> Self
Converts to this type from the input type.
Source§impl From<CookieResponse<776>> for ServerboundConfigurationPacket
impl From<CookieResponse<776>> for ServerboundConfigurationPacket
Source§fn from(p: CookieResponse) -> Self
fn from(p: CookieResponse) -> Self
Converts to this type from the input type.
Source§impl From<CustomClickAction<776>> for ServerboundConfigurationPacket
impl From<CustomClickAction<776>> for ServerboundConfigurationPacket
Source§fn from(p: CustomClickAction) -> Self
fn from(p: CustomClickAction) -> Self
Converts to this type from the input type.
Source§impl From<CustomPayload<776>> for ServerboundConfigurationPacket
impl From<CustomPayload<776>> for ServerboundConfigurationPacket
Source§fn from(p: CustomPayload) -> Self
fn from(p: CustomPayload) -> Self
Converts to this type from the input type.
Source§impl From<FinishConfiguration<776>> for ServerboundConfigurationPacket
impl From<FinishConfiguration<776>> for ServerboundConfigurationPacket
Source§fn from(p: FinishConfiguration) -> Self
fn from(p: FinishConfiguration) -> Self
Converts to this type from the input type.
Source§impl From<KeepAlive<776>> for ServerboundConfigurationPacket
impl From<KeepAlive<776>> for ServerboundConfigurationPacket
Source§impl From<Pong<776>> for ServerboundConfigurationPacket
impl From<Pong<776>> for ServerboundConfigurationPacket
Source§impl From<ResourcePackReceive<776>> for ServerboundConfigurationPacket
impl From<ResourcePackReceive<776>> for ServerboundConfigurationPacket
Source§fn from(p: ResourcePackReceive) -> Self
fn from(p: ResourcePackReceive) -> Self
Converts to this type from the input type.
Source§impl From<SelectKnownPacks<776>> for ServerboundConfigurationPacket
impl From<SelectKnownPacks<776>> for ServerboundConfigurationPacket
Source§fn from(p: SelectKnownPacks) -> Self
fn from(p: SelectKnownPacks) -> Self
Converts to this type from the input type.
Source§impl From<Settings<776>> for ServerboundConfigurationPacket
impl From<Settings<776>> for ServerboundConfigurationPacket
Source§impl PacketSet for ServerboundConfigurationPacket
impl PacketSet for ServerboundConfigurationPacket
Source§fn decode_raw(raw: &RawPacket) -> DecodeResult<Self>
fn decode_raw(raw: &RawPacket) -> DecodeResult<Self>
Decodes a raw packet into the matching variant (strict: no trailing bytes).
Source§fn encode_body(&self, w: &mut BytesMut) -> EncodeResult
fn encode_body(&self, w: &mut BytesMut) -> EncodeResult
Encodes the packet body (without the id).
impl StructuralPartialEq for ServerboundConfigurationPacket
Auto Trait Implementations§
impl !Freeze for ServerboundConfigurationPacket
impl Forget for ServerboundConfigurationPacket
impl Move for ServerboundConfigurationPacket
impl RefUnwindSafe for ServerboundConfigurationPacket
impl Send for ServerboundConfigurationPacket
impl Sync for ServerboundConfigurationPacket
impl Unpin for ServerboundConfigurationPacket
impl UnsafeUnpin for ServerboundConfigurationPacket
impl UnwindSafe for ServerboundConfigurationPacket
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