pub struct GuardIo {
pub error: Error,
pub refused_a_link: bool,
}Expand description
A failed syscall, plus the one classification only the adapter can make.
Fields§
§error: Error§refused_a_link: boolThe OS refused because a component was a link or other reparse point, as distinct from any other failure.
Each adapter decides this from its own quirks — POSIX says ELOOP but
macOS says ENOTDIR whenever O_DIRECTORY is also set, and Windows
says STATUS_REPARSE_POINT_ENCOUNTERED or reports the attribute on a
handle it opened without following. That is translation, not policy, so
it belongs in the adapter; what the caller does about it is policy,
and stays in fsguard.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for GuardIo
impl !UnwindSafe for GuardIo
impl Freeze for GuardIo
impl Send for GuardIo
impl Sync for GuardIo
impl Unpin for GuardIo
impl UnsafeUnpin for GuardIo
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