Skip to main content

IntoRedisName

Trait IntoRedisName 

Source
pub trait IntoRedisName {
    // Required method
    fn into_name(self) -> String;
}
Expand description

Redis 连接名的抽象,用户可为枚举实现此 trait 以获得编译时检查。

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoRedisName for &str

为 &str 实现,保持字符串方式可用。

Source§

impl IntoRedisName for String

为 String 实现,保持字符串方式可用。

Implementors§