pub enum SetError {
Io(Error),
ResMan(ResManError),
Message(String),
}Expand description
Errors returned while reading or parsing SET payloads.
§Examples
let _ = std::mem::size_of::<nwnrs_set::SetError>();Variants§
Io(Error)
An underlying IO operation failed.
ResMan(ResManError)
Resource-manager access failed.
Message(String)
The payload was otherwise invalid or unsupported.
Implementations§
Trait Implementations§
Source§impl Error for SetError
impl Error for SetError
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<ResManError> for SetError
impl From<ResManError> for SetError
Source§fn from(value: ResManError) -> Self
fn from(value: ResManError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SetError
impl !RefUnwindSafe for SetError
impl Send for SetError
impl Sync for SetError
impl Unpin for SetError
impl UnsafeUnpin for SetError
impl !UnwindSafe for SetError
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