pub enum Error {
Fs(CString),
Unknown,
}Variants§
Implementations§
Source§impl Error
impl Error
Sourcepub fn latest() -> Option<Self>
pub fn latest() -> Option<Self>
Equivalent to sys::ffi::playdate_file::geterr
Sourcepub fn latest_with<Api: Api>(api: Api) -> Option<Self>
pub fn latest_with<Api: Api>(api: Api) -> Option<Self>
Equivalent to sys::ffi::playdate_file::geterr
pub fn from_ptr(ptr: *const c_char) -> Option<Self>
pub fn ok_from_code(result: c_int) -> Result<c_uint, Self>
pub fn ok_from_code_with<Api: Api>( result: c_int, api: Api, ) -> Result<c_uint, Self>
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0§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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
§impl<T> ToString for Twhere
T: Display + ?Sized,
impl<T> ToString for Twhere
T: Display + ?Sized,
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes
Size for each variant:
Fs: 8 bytesUnknown: 0 bytes