pub enum ExternalResourceFailure {
ResourceRootRequired,
Refused,
CaptureLimitExceeded,
Unavailable,
}Expand description
Sanitized failure classes for external resources required by the loader.
Variants§
ResourceRootRequired
Captured bytes did not authorize a filesystem root.
Refused
The source-controlled locator or resolved path crossed the refusal boundary.
CaptureLimitExceeded
The resource exceeded the bounded closure-capture limits.
The accepted resource was missing, unreadable, or changed before capture.
Trait Implementations§
Source§impl Clone for ExternalResourceFailure
impl Clone for ExternalResourceFailure
Source§fn clone(&self) -> ExternalResourceFailure
fn clone(&self) -> ExternalResourceFailure
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 ExternalResourceFailure
Source§impl Debug for ExternalResourceFailure
impl Debug for ExternalResourceFailure
Source§impl Display for ExternalResourceFailure
impl Display for ExternalResourceFailure
impl Eq for ExternalResourceFailure
Source§impl Error for ExternalResourceFailure
impl Error for ExternalResourceFailure
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 PartialEq for ExternalResourceFailure
impl PartialEq for ExternalResourceFailure
impl StructuralPartialEq for ExternalResourceFailure
Auto Trait Implementations§
impl Freeze for ExternalResourceFailure
impl RefUnwindSafe for ExternalResourceFailure
impl Send for ExternalResourceFailure
impl Sync for ExternalResourceFailure
impl Unpin for ExternalResourceFailure
impl UnsafeUnpin for ExternalResourceFailure
impl UnwindSafe for ExternalResourceFailure
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