pub struct SparkEntry {
pub value: Vec<u8>,
pub ttl_secs: u32,
}Expand description
A Spark entry returned by get.
Fields§
§value: Vec<u8>The raw stored value.
ttl_secs: u32Remaining TTL in seconds. 0 means the entry was stored with no
expiry.
Trait Implementations§
Source§impl Clone for SparkEntry
impl Clone for SparkEntry
Source§fn clone(&self) -> SparkEntry
fn clone(&self) -> SparkEntry
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 moreAuto Trait Implementations§
impl Freeze for SparkEntry
impl RefUnwindSafe for SparkEntry
impl Send for SparkEntry
impl Sync for SparkEntry
impl Unpin for SparkEntry
impl UnsafeUnpin for SparkEntry
impl UnwindSafe for SparkEntry
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