pub enum InvalidProperties {
BadGamemode(String),
ContainsSemicolon(String),
Nan(ParseIntError),
}Expand description
Returned from ServerProperties::from_str() and points out formatting
errors in the file.
Variants§
BadGamemode(String)
The gamemode specified could not be parsed.
ContainsSemicolon(String)
A string has an illegal ;.
Nan(ParseIntError)
What should’ve been a number was not parsed.
Trait Implementations§
Source§impl Debug for InvalidProperties
impl Debug for InvalidProperties
Source§impl Display for InvalidProperties
impl Display for InvalidProperties
Source§impl Error for InvalidProperties
impl Error for InvalidProperties
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<BadGamemode> for InvalidProperties
impl From<BadGamemode> for InvalidProperties
Source§fn from(b: BadGamemode) -> Self
fn from(b: BadGamemode) -> Self
Converts to this type from the input type.
Source§impl From<ContainsSemicolon> for InvalidProperties
impl From<ContainsSemicolon> for InvalidProperties
Source§fn from(s: ContainsSemicolon) -> Self
fn from(s: ContainsSemicolon) -> Self
Converts to this type from the input type.
Source§impl From<InvalidProperties> for ProgramError
impl From<InvalidProperties> for ProgramError
Source§fn from(e: InvalidProperties) -> Self
fn from(e: InvalidProperties) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for InvalidProperties
impl From<ParseIntError> for InvalidProperties
Source§fn from(e: ParseIntError) -> Self
fn from(e: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InvalidProperties
impl RefUnwindSafe for InvalidProperties
impl Send for InvalidProperties
impl Sync for InvalidProperties
impl Unpin for InvalidProperties
impl UnwindSafe for InvalidProperties
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