pub enum InvalidScreenshotPath {
NotUtf8,
InteriorNul,
}Expand description
Why a screenshot file path could not be represented by Foundation.
Variants§
NotUtf8
Foundation file URLs require a valid UTF-8 path.
InteriorNul
C strings cannot contain an interior NUL byte.
Trait Implementations§
Source§impl Clone for InvalidScreenshotPath
impl Clone for InvalidScreenshotPath
Source§fn clone(&self) -> InvalidScreenshotPath
fn clone(&self) -> InvalidScreenshotPath
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InvalidScreenshotPath
Source§impl Debug for InvalidScreenshotPath
impl Debug for InvalidScreenshotPath
Source§impl Display for InvalidScreenshotPath
Available on crate feature macos_26_0 only.
impl Display for InvalidScreenshotPath
Available on crate feature
macos_26_0 only.impl Eq for InvalidScreenshotPath
Source§impl Error for InvalidScreenshotPath
Available on crate feature macos_26_0 only.
impl Error for InvalidScreenshotPath
Available on crate feature
macos_26_0 only.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 Hash for InvalidScreenshotPath
impl Hash for InvalidScreenshotPath
Source§impl PartialEq for InvalidScreenshotPath
impl PartialEq for InvalidScreenshotPath
Source§fn eq(&self, other: &InvalidScreenshotPath) -> bool
fn eq(&self, other: &InvalidScreenshotPath) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InvalidScreenshotPath
Auto Trait Implementations§
impl Freeze for InvalidScreenshotPath
impl RefUnwindSafe for InvalidScreenshotPath
impl Send for InvalidScreenshotPath
impl Sync for InvalidScreenshotPath
impl Unpin for InvalidScreenshotPath
impl UnsafeUnpin for InvalidScreenshotPath
impl UnwindSafe for InvalidScreenshotPath
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