pub struct WarningsState {
pub filters: PyListRef,
pub once_registry: PyDictRef,
pub default_action: PyStrRef,
pub filters_version: AtomicUsize,
pub context_var: OnceCell<PyObjectRef>,
/* private fields */
}Fields§
§filters: PyListRef§once_registry: PyDictRef§default_action: PyStrRef§filters_version: AtomicUsize§context_var: OnceCell<PyObjectRef>Implementations§
Source§impl WarningsState
impl WarningsState
pub fn init_state(ctx: &Context) -> Self
pub fn acquire_lock(&self)
pub fn release_lock(&self) -> bool
pub fn filters_mutated(&self)
Auto Trait Implementations§
impl !Freeze for WarningsState
impl !RefUnwindSafe for WarningsState
impl !Send for WarningsState
impl !Sync for WarningsState
impl Unpin for WarningsState
impl UnsafeUnpin for WarningsState
impl !UnwindSafe for WarningsState
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more