pub enum EffectLoggerError {
Sink(String),
}Expand description
Errors that a log sink may produce.
Currently the only backend is tracing, which is infallible, so no
variant is ever constructed at runtime. The type exists so that callers
can compose it into their E bound and gain compile-time proof that the
logger’s error channel is handled, without changing the API when a
fallible backend (e.g. a network sink) is added later.
Variants§
Trait Implementations§
Source§impl Clone for EffectLoggerError
impl Clone for EffectLoggerError
Source§fn clone(&self) -> EffectLoggerError
fn clone(&self) -> EffectLoggerError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EffectLoggerError
impl Debug for EffectLoggerError
Source§impl Display for EffectLoggerError
impl Display for EffectLoggerError
Source§impl Error for EffectLoggerError
impl Error for EffectLoggerError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Infallible> for EffectLoggerError
impl From<Infallible> for EffectLoggerError
Source§fn from(e: Infallible) -> Self
fn from(e: Infallible) -> Self
Converts to this type from the input type.
Source§impl Hash for EffectLoggerError
impl Hash for EffectLoggerError
Source§impl<'a, R> IntoBind<'a, R, EffectLogger, EffectLoggerError> for EffectLogger
Implementing IntoBind for EffectLogger makes ~EffectLogger valid
inside any effect! whose environment R holds an EffectLogger under
EffectLogKey. The zero-sized struct acts as its own “request token”:
passing it to ~ copies the concrete value out of R and binds it as a
local variable.
impl<'a, R> IntoBind<'a, R, EffectLogger, EffectLoggerError> for EffectLogger
Implementing IntoBind for EffectLogger makes ~EffectLogger valid
inside any effect! whose environment R holds an EffectLogger under
EffectLogKey. The zero-sized struct acts as its own “request token”:
passing it to ~ copies the concrete value out of R and binds it as a
local variable.
Source§fn into_bind(
self,
r: &'a mut R,
) -> BoxFuture<'a, Result<EffectLogger, EffectLoggerError>>
fn into_bind( self, r: &'a mut R, ) -> BoxFuture<'a, Result<EffectLogger, EffectLoggerError>>
Turns
self into a boxed future given the environment r.Source§impl PartialEq for EffectLoggerError
impl PartialEq for EffectLoggerError
impl Eq for EffectLoggerError
Auto Trait Implementations§
impl Freeze for EffectLoggerError
impl RefUnwindSafe for EffectLoggerError
impl Send for EffectLoggerError
impl Sync for EffectLoggerError
impl Unpin for EffectLoggerError
impl UnsafeUnpin for EffectLoggerError
impl UnwindSafe for EffectLoggerError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EffectHash for T
impl<T> EffectHash for T
Source§fn effect_hash(&self) -> u64
fn effect_hash(&self) -> u64
Returns a
u64 hash of self using the default hasher (Effect.ts-style single-value hash).Source§impl<T> Equal for T
impl<T> Equal for T
Source§fn effect_equals(&self, other: &Self) -> bool
fn effect_equals(&self, other: &Self) -> bool
Returns whether
self and other are structurally equal (defaults to PartialEq::eq).