Enum dofus_protocol::game::chat::chat_error_event::Error
source · #[repr(i32)]pub enum Error {
Unknown = 0,
ReceiverNotFound = 1,
InteriorMonologue = 2,
NoGuild = 3,
NoParty = 4,
Alliance = 5,
InvalidMap = 6,
NoPartyArena = 7,
NoTeam = 8,
MalformedContent = 9,
NoExchange = 10,
}
Variants§
Unknown = 0
ReceiverNotFound = 1
InteriorMonologue = 2
NoGuild = 3
NoParty = 4
Alliance = 5
InvalidMap = 6
NoPartyArena = 7
NoTeam = 8
MalformedContent = 9
NoExchange = 10
Implementations§
source§impl Error
impl Error
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Ord for Error
impl Ord for Error
source§impl PartialOrd for Error
impl PartialOrd for Error
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)