pub struct EnvWarningSink { /* private fields */ }Expand description
Sink for env-precedence warnings.
One global instance (env_warning_sink) deduplicates warnings by the
lifeloop key name so a process that resolves the same alias many
times only emits one warning. Tests can inspect drain to assert
precedence behavior.
Implementations§
Source§impl EnvWarningSink
impl EnvWarningSink
Sourcepub fn drain(&self) -> Vec<EnvPrecedenceWarning>
pub fn drain(&self) -> Vec<EnvPrecedenceWarning>
Drain queued warnings (FIFO). Each warning is yielded at most once: a key that has already been drained will not appear again in a later call, even if its alias resolves repeatedly.
Trait Implementations§
Source§impl Debug for EnvWarningSink
impl Debug for EnvWarningSink
Source§impl Default for EnvWarningSink
impl Default for EnvWarningSink
Source§fn default() -> EnvWarningSink
fn default() -> EnvWarningSink
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for EnvWarningSink
impl RefUnwindSafe for EnvWarningSink
impl Send for EnvWarningSink
impl Sync for EnvWarningSink
impl Unpin for EnvWarningSink
impl UnsafeUnpin for EnvWarningSink
impl UnwindSafe for EnvWarningSink
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