pub struct CacheError(/* private fields */);Expand description
缓存错误类型
对外暴露的缓存错误类型,隐藏 rat_memcache 的实现细节
Implementations§
Source§impl CacheError
impl CacheError
Sourcepub fn config_error(msg: &str) -> Self
pub fn config_error(msg: &str) -> Self
创建配置错误
Sourcepub fn validation_error(msg: &str) -> Self
pub fn validation_error(msg: &str) -> Self
创建验证错误
Sourcepub fn serialization_error(msg: &str) -> Self
pub fn serialization_error(msg: &str) -> Self
创建序列化错误
Sourcepub fn deserialization_error(msg: &str) -> Self
pub fn deserialization_error(msg: &str) -> Self
创建反序列化错误
Sourcepub fn other_error(msg: &str) -> Self
pub fn other_error(msg: &str) -> Self
创建其他错误
Trait Implementations§
Source§impl Debug for CacheError
impl Debug for CacheError
Source§impl Display for CacheError
impl Display for CacheError
Source§impl Error for CacheError
impl Error for CacheError
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<CacheError> for RatError
impl From<CacheError> for RatError
Source§fn from(err: CacheError) -> Self
fn from(err: CacheError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CacheError
impl !RefUnwindSafe for CacheError
impl Send for CacheError
impl Sync for CacheError
impl Unpin for CacheError
impl !UnwindSafe for CacheError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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