pub struct Set { /* private fields */ }Implementations§
Source§impl Set
impl Set
pub fn new(key: impl ToString, value: Bytes, expire: Option<Duration>) -> Set
pub fn key(&self) -> &str
pub fn value(&self) -> &Bytes
pub fn expire(&self) -> Option<Duration>
pub fn parse_frames(parse: &mut Parse) -> Result<Set>
pub async fn apply(self, db: &Db, dst: &mut Connection) -> Result<()>
pub fn into_frame(self) -> Frame
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Set
impl RefUnwindSafe for Set
impl Send for Set
impl Sync for Set
impl Unpin for Set
impl UnwindSafe for Set
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