#[repr(u32)]pub enum IncomingRpcMethods {
Show 69 variants
Allowlist = 0,
AllowlistSet = 1,
AllowlistAdd = 2,
AllowlistRemove = 3,
AllowlistClear = 4,
Bans = 5,
BansSet = 6,
BansAdd = 7,
BansRemove = 8,
BansClear = 9,
IpBans = 10,
IpBansSet = 11,
IpBansAdd = 12,
IpBansRemove = 13,
IpBansClear = 14,
Players = 15,
PlayersKick = 16,
Operators = 17,
OperatorsSet = 18,
OperatorsAdd = 19,
OperatorsRemove = 20,
OperatorsClear = 21,
ServerStatus = 22,
ServerSave = 23,
ServerStop = 24,
ServerSystemMessage = 25,
ServersettingsAutosave = 26,
ServersettingsAutosaveSet = 27,
ServersettingsDifficulty = 28,
ServersettingsDifficultySet = 29,
ServersettingsEnforceAllowlist = 30,
ServersettingsEnforceAllowlistSet = 31,
ServersettingsUseAllowlist = 32,
ServersettingsUseAllowlistSet = 33,
ServersettingsMaxPlayers = 34,
ServersettingsMaxPlayersSet = 35,
ServersettingsPauseWhenEmptySeconds = 36,
ServersettingsPauseWhenEmptySecondsSet = 37,
ServersettingsPlayerIdleTimeout = 38,
ServersettingsPlayerIdleTimeoutSet = 39,
ServersettingsAllowFlight = 40,
ServersettingsAllowFlightSet = 41,
ServersettingsMotd = 42,
ServersettingsMotdSet = 43,
ServersettingsSpawnProtectionRadius = 44,
ServersettingsSpawnProtectionRadiusSet = 45,
ServersettingsForceGameMode = 46,
ServersettingsForceGameModeSet = 47,
ServersettingsGameMode = 48,
ServersettingsGameModeSet = 49,
ServersettingsViewDistance = 50,
ServersettingsViewDistanceSet = 51,
ServersettingsSimulationDistance = 52,
ServersettingsSimulationDistanceSet = 53,
ServersettingsAcceptTransfers = 54,
ServersettingsAcceptTransfersSet = 55,
ServersettingsStatusHeartbeatInterval = 56,
ServersettingsStatusHeartbeatIntervalSet = 57,
ServersettingsOperatorUserPermissionLevel = 58,
ServersettingsOperatorUserPermissionLevelSet = 59,
ServersettingsHideOnlinePlayers = 60,
ServersettingsHideOnlinePlayersSet = 61,
ServersettingsStatusReplies = 62,
ServersettingsStatusRepliesSet = 63,
ServersettingsEntityBroadcastRange = 64,
ServersettingsEntityBroadcastRangeSet = 65,
Gamerules = 66,
GamerulesUpdate = 67,
RpcDiscover = 68,
}
Variants§
Allowlist = 0
AllowlistSet = 1
AllowlistAdd = 2
AllowlistRemove = 3
AllowlistClear = 4
Bans = 5
BansSet = 6
BansAdd = 7
BansRemove = 8
BansClear = 9
IpBans = 10
IpBansSet = 11
IpBansAdd = 12
IpBansRemove = 13
IpBansClear = 14
Players = 15
PlayersKick = 16
Operators = 17
OperatorsSet = 18
OperatorsAdd = 19
OperatorsRemove = 20
OperatorsClear = 21
ServerStatus = 22
ServerSave = 23
ServerStop = 24
ServerSystemMessage = 25
ServersettingsAutosave = 26
ServersettingsAutosaveSet = 27
ServersettingsDifficulty = 28
ServersettingsDifficultySet = 29
ServersettingsEnforceAllowlist = 30
ServersettingsEnforceAllowlistSet = 31
ServersettingsUseAllowlist = 32
ServersettingsUseAllowlistSet = 33
ServersettingsMaxPlayers = 34
ServersettingsMaxPlayersSet = 35
ServersettingsPauseWhenEmptySeconds = 36
ServersettingsPauseWhenEmptySecondsSet = 37
ServersettingsPlayerIdleTimeout = 38
ServersettingsPlayerIdleTimeoutSet = 39
ServersettingsAllowFlight = 40
ServersettingsAllowFlightSet = 41
ServersettingsMotd = 42
ServersettingsMotdSet = 43
ServersettingsSpawnProtectionRadius = 44
ServersettingsSpawnProtectionRadiusSet = 45
ServersettingsForceGameMode = 46
ServersettingsForceGameModeSet = 47
ServersettingsGameMode = 48
ServersettingsGameModeSet = 49
ServersettingsViewDistance = 50
ServersettingsViewDistanceSet = 51
ServersettingsSimulationDistance = 52
ServersettingsSimulationDistanceSet = 53
ServersettingsAcceptTransfers = 54
ServersettingsAcceptTransfersSet = 55
ServersettingsStatusHeartbeatInterval = 56
ServersettingsStatusHeartbeatIntervalSet = 57
ServersettingsOperatorUserPermissionLevel = 58
ServersettingsOperatorUserPermissionLevelSet = 59
ServersettingsHideOnlinePlayers = 60
ServersettingsHideOnlinePlayersSet = 61
ServersettingsStatusReplies = 62
ServersettingsStatusRepliesSet = 63
ServersettingsEntityBroadcastRange = 64
ServersettingsEntityBroadcastRangeSet = 65
Gamerules = 66
GamerulesUpdate = 67
RpcDiscover = 68
Implementations§
Source§impl IncomingRpcMethods
impl IncomingRpcMethods
pub fn azalea_read_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl IncomingRpcMethods
impl IncomingRpcMethods
Sourcepub unsafe fn from_u32_unchecked(id: u32) -> Self
pub unsafe fn from_u32_unchecked(id: u32) -> Self
pub fn is_valid_id(id: u32) -> bool
Trait Implementations§
Source§impl AzaleaRead for IncomingRpcMethods
impl AzaleaRead for IncomingRpcMethods
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl AzaleaWrite for IncomingRpcMethods
impl AzaleaWrite for IncomingRpcMethods
Source§impl Clone for IncomingRpcMethods
impl Clone for IncomingRpcMethods
Source§fn clone(&self) -> IncomingRpcMethods
fn clone(&self) -> IncomingRpcMethods
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 IncomingRpcMethods
impl Debug for IncomingRpcMethods
Source§impl<'de> Deserialize<'de> for IncomingRpcMethods
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for IncomingRpcMethods
Available on crate feature
serde
only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for IncomingRpcMethods
impl Display for IncomingRpcMethods
Source§impl FromNbtTag for IncomingRpcMethods
impl FromNbtTag for IncomingRpcMethods
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for IncomingRpcMethods
impl FromStr for IncomingRpcMethods
Source§impl Hash for IncomingRpcMethods
impl Hash for IncomingRpcMethods
Source§impl PartialEq for IncomingRpcMethods
impl PartialEq for IncomingRpcMethods
Source§impl Registry for IncomingRpcMethods
impl Registry for IncomingRpcMethods
Source§impl Serialize for IncomingRpcMethods
Available on crate feature serde
only.
impl Serialize for IncomingRpcMethods
Available on crate feature
serde
only.Source§impl ToNbtTag for IncomingRpcMethods
impl ToNbtTag for IncomingRpcMethods
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for IncomingRpcMethods
impl TryFrom<u32> for IncomingRpcMethods
impl Copy for IncomingRpcMethods
impl Eq for IncomingRpcMethods
impl StructuralPartialEq for IncomingRpcMethods
Auto Trait Implementations§
impl Freeze for IncomingRpcMethods
impl RefUnwindSafe for IncomingRpcMethods
impl Send for IncomingRpcMethods
impl Sync for IncomingRpcMethods
impl Unpin for IncomingRpcMethods
impl UnwindSafe for IncomingRpcMethods
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.