pub struct Counter {
pub name: String,
pub count: i64,
pub step: i64,
pub template: String,
}Fields§
§name: String§count: i64§step: i64§template: StringImplementations§
Source§impl Counter
impl Counter
pub fn new(name: &str) -> Counter
pub fn set_default(&self, conn: &ConnectionThreadSafe) -> Result<()>
pub fn get_default(conn: &ConnectionThreadSafe) -> Result<Option<String>>
pub fn insert(&self, conn: &ConnectionThreadSafe) -> Result<()>
pub fn delete(conn: &ConnectionThreadSafe, name: &str) -> Result<()>
pub fn get(conn: &ConnectionThreadSafe, name: &str) -> Result<Option<Counter>>
pub fn get_all(conn: &ConnectionThreadSafe) -> Result<Vec<Counter>>
pub fn update(&self, conn: &ConnectionThreadSafe) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Counter
impl RefUnwindSafe for Counter
impl Send for Counter
impl Sync for Counter
impl Unpin for Counter
impl UnwindSafe for Counter
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