Enum pyembed::CheckHashPycsMode
source · [−]pub enum CheckHashPycsMode {
Always,
Never,
Default,
}
Expand description
Control the validation behavior of hash-based .pyc files.
See https://docs.python.org/3/c-api/init_config.html#c.PyConfig.check_hash_pycs_mode.
Serialization type: string
Variants
Always
Hash the source file for invalidation regardless of value of the check_source
flag.
Serialized value: always
Never
Assume that hash-based pycs always are valid.
Serialized value: never
Default
The check_source
flag in hash-based pycs determines invalidation.
Serialized value: default
Trait Implementations
sourceimpl Clone for CheckHashPycsMode
impl Clone for CheckHashPycsMode
sourcefn clone(&self) -> CheckHashPycsMode
fn clone(&self) -> CheckHashPycsMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CheckHashPycsMode
impl Debug for CheckHashPycsMode
sourceimpl ToString for CheckHashPycsMode
impl ToString for CheckHashPycsMode
sourceimpl<'_> TryFrom<&'_ str> for CheckHashPycsMode
impl<'_> TryFrom<&'_ str> for CheckHashPycsMode
sourceimpl TryFrom<String> for CheckHashPycsMode
impl TryFrom<String> for CheckHashPycsMode
impl Copy for CheckHashPycsMode
impl StructuralPartialEq for CheckHashPycsMode
Auto Trait Implementations
impl RefUnwindSafe for CheckHashPycsMode
impl Send for CheckHashPycsMode
impl Sync for CheckHashPycsMode
impl Unpin for CheckHashPycsMode
impl UnwindSafe for CheckHashPycsMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more