[−][src]Struct tracing_fmt::filter::reload::Handle
Methods
impl<F, N> Handle<F, N> where
F: Filter<N> + 'static,
[src]
F: Filter<N> + 'static,
pub fn reload(&self, new_filter: impl Into<F>) -> Result<(), Error>
[src]
pub fn modify(&self, f: impl FnOnce(&mut F)) -> Result<(), Error>
[src]
Invokes a closure with a mutable reference to the current filter, allowing it to be modified in place.
pub fn clone_current(&self) -> Option<F> where
F: Clone,
[src]
F: Clone,
Returns a clone of the filter's current value if it still exists.
Otherwise, if the filter has been dropped, returns None
.
pub fn with_current<T>(&self, f: impl FnOnce(&F) -> T) -> Result<T, Error>
[src]
Invokes a closure with a borrowed reference to the current filter, returning the result (or an error if the filter no longer exists).
Trait Implementations
impl<F, N> Clone for Handle<F, N> where
F: Filter<N>,
[src]
F: Filter<N>,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<F: Debug, N: Debug> Debug for Handle<F, N> where
F: Filter<N>,
[src]
F: Filter<N>,
Auto Trait Implementations
impl<F, N> Sync for Handle<F, N> where
F: Send + Sync,
F: Send + Sync,
impl<F, N> Send for Handle<F, N> where
F: Send + Sync,
F: Send + Sync,
impl<F, N> Unpin for Handle<F, N> where
F: Unpin,
F: Unpin,
impl<F, N> !RefUnwindSafe for Handle<F, N>
impl<F, N> !UnwindSafe for Handle<F, N>
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,