#[non_exhaustive]pub struct GuardReport {
pub lock_file: Option<PathBuf>,
pub lock_filesystem: Option<&'static str>,
pub umask_before: Option<u32>,
pub umask_after: Option<u32>,
pub open_files_before: Limit,
pub open_files_after: Limit,
pub warnings: Vec<GuardWarning>,
}Available on crate feature
guard only.Expand description
What the guard did.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.lock_file: Option<PathBuf>The lock file, when a lock was taken.
lock_filesystem: Option<&'static str>The lock directory’s filesystem: “ext4”, “apfs”, “NTFS”, …
umask_before: Option<u32>The umask before the guard (Unix; None on Windows).
umask_after: Option<u32>The umask after the guard (Unix; None on Windows).
open_files_before: LimitThe open-file limit before the guard (None values: unlimited or not applicable).
open_files_after: LimitThe open-file limit after the guard.
warnings: Vec<GuardWarning>Conditions worth logging that did not stop the guard.
Trait Implementations§
Source§impl Clone for GuardReport
impl Clone for GuardReport
Source§impl Debug for GuardReport
impl Debug for GuardReport
impl Eq for GuardReport
Source§impl PartialEq for GuardReport
impl PartialEq for GuardReport
impl StructuralPartialEq for GuardReport
Auto Trait Implementations§
impl Forget for GuardReport
impl Freeze for GuardReport
impl RefUnwindSafe for GuardReport
impl Send for GuardReport
impl Sync for GuardReport
impl Unpin for GuardReport
impl UnsafeUnpin for GuardReport
impl UnwindSafe for GuardReport
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