#[non_exhaustive]pub enum GuardWarning {
ThreadsAlreadyRunning {
threads: usize,
},
NetworkLockAllowed {
filesystem: &'static str,
},
LockDisabled,
}Available on crate feature
guard only.Expand description
A condition the guard reports without refusing to start.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ThreadsAlreadyRunning
Other threads were running when the umask changed; files they created meanwhile may have the old permissions. Call the guard before starting threads. Unix only: Windows has no umask.
NetworkLockAllowed
The lock directory is on a filesystem whose locks may not hold across
machines, accepted because allow_network_lock(true) was set.
LockDisabled
lock(false): no single-instance lock was taken.
Trait Implementations§
Source§impl Clone for GuardWarning
impl Clone for GuardWarning
Source§impl Debug for GuardWarning
impl Debug for GuardWarning
impl Eq for GuardWarning
Source§impl PartialEq for GuardWarning
impl PartialEq for GuardWarning
impl StructuralPartialEq for GuardWarning
Auto Trait Implementations§
impl Forget for GuardWarning
impl Freeze for GuardWarning
impl Move for GuardWarning
impl RefUnwindSafe for GuardWarning
impl Send for GuardWarning
impl Sync for GuardWarning
impl Unpin for GuardWarning
impl UnsafeUnpin for GuardWarning
impl UnwindSafe for GuardWarning
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