Enum dofus_protocol::game::common::SocialNoticeError
source · #[repr(i32)]pub enum SocialNoticeError {
SocialNoticeUnknownError = 0,
SocialNoticeInvalidRights = 1,
SocialNoticeCooldown = 2,
}
Variants§
Implementations§
source§impl SocialNoticeError
impl SocialNoticeError
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 Clone for SocialNoticeError
impl Clone for SocialNoticeError
source§fn clone(&self) -> SocialNoticeError
fn clone(&self) -> SocialNoticeError
Returns a copy 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 SocialNoticeError
impl Debug for SocialNoticeError
source§impl Default for SocialNoticeError
impl Default for SocialNoticeError
source§fn default() -> SocialNoticeError
fn default() -> SocialNoticeError
Returns the “default value” for a type. Read more
source§impl From<SocialNoticeError> for i32
impl From<SocialNoticeError> for i32
source§fn from(value: SocialNoticeError) -> i32
fn from(value: SocialNoticeError) -> i32
Converts to this type from the input type.
source§impl Hash for SocialNoticeError
impl Hash for SocialNoticeError
source§impl Ord for SocialNoticeError
impl Ord for SocialNoticeError
source§fn cmp(&self, other: &SocialNoticeError) -> Ordering
fn cmp(&self, other: &SocialNoticeError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SocialNoticeError
impl PartialEq for SocialNoticeError
source§impl PartialOrd for SocialNoticeError
impl PartialOrd for SocialNoticeError
source§impl TryFrom<i32> for SocialNoticeError
impl TryFrom<i32> for SocialNoticeError
source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<SocialNoticeError, UnknownEnumValue>
fn try_from(value: i32) -> Result<SocialNoticeError, UnknownEnumValue>
Performs the conversion.
impl Copy for SocialNoticeError
impl Eq for SocialNoticeError
impl StructuralPartialEq for SocialNoticeError
Auto Trait Implementations§
impl Freeze for SocialNoticeError
impl RefUnwindSafe for SocialNoticeError
impl Send for SocialNoticeError
impl Sync for SocialNoticeError
impl Unpin for SocialNoticeError
impl UnwindSafe for SocialNoticeError
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
)