pub enum ResourcePackStatus {
Loaded,
Declined,
FailedDownload,
Accepted,
}
Variants§
Implementations§
Source§impl ResourcePackStatus
impl ResourcePackStatus
pub const fn variant_count() -> usize
pub fn deserialize_with_id<'a>( id: VarInt, data: &'a [u8], ) -> DeserializeResult<'a, Self>
pub fn name(&self) -> &str
pub fn id(&self) -> VarInt
pub fn serialize_body<S: Serializer>(&self, to: &mut S) -> SerializeResult
Trait Implementations§
Source§impl Clone for ResourcePackStatus
impl Clone for ResourcePackStatus
Source§fn clone(&self) -> ResourcePackStatus
fn clone(&self) -> ResourcePackStatus
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 ResourcePackStatus
impl Debug for ResourcePackStatus
Source§impl Deserialize for ResourcePackStatus
impl Deserialize for ResourcePackStatus
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<PlayResourcePackStatusSpec> for ResourcePackStatus
impl From<PlayResourcePackStatusSpec> for ResourcePackStatus
Source§fn from(other: PlayResourcePackStatusSpec) -> Self
fn from(other: PlayResourcePackStatusSpec) -> Self
Converts to this type from the input type.
Source§impl From<ResourcePackStatus> for PlayResourcePackStatusSpec
impl From<ResourcePackStatus> for PlayResourcePackStatusSpec
Source§fn from(other: ResourcePackStatus) -> Self
fn from(other: ResourcePackStatus) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ResourcePackStatus
impl PartialEq for ResourcePackStatus
Source§impl Serialize for ResourcePackStatus
impl Serialize for ResourcePackStatus
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for ResourcePackStatus
Auto Trait Implementations§
impl Freeze for ResourcePackStatus
impl RefUnwindSafe for ResourcePackStatus
impl Send for ResourcePackStatus
impl Sync for ResourcePackStatus
impl Unpin for ResourcePackStatus
impl UnwindSafe for ResourcePackStatus
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