Struct simple_redis::types::Interrupts
source · pub struct Interrupts {
pub stop: bool,
pub next_polling_time: Option<u64>,
}
Expand description
Enable to modify blocking operations.
Fields§
§stop: bool
Notify blocking operation to stop
next_polling_time: Option<u64>
Next polling time in millies
Implementations§
source§impl Interrupts
impl Interrupts
sourcepub fn new() -> Interrupts
pub fn new() -> Interrupts
Returns a new instance.
Trait Implementations§
source§impl Clone for Interrupts
impl Clone for Interrupts
source§fn clone(&self) -> Interrupts
fn clone(&self) -> Interrupts
Returns a copy 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 moresource§impl Debug for Interrupts
impl Debug for Interrupts
source§impl Default for Interrupts
impl Default for Interrupts
source§fn default() -> Interrupts
fn default() -> Interrupts
Returns the “default value” for a type. Read more
impl Copy for Interrupts
Auto Trait Implementations§
impl Freeze for Interrupts
impl RefUnwindSafe for Interrupts
impl Send for Interrupts
impl Sync for Interrupts
impl Unpin for Interrupts
impl UnwindSafe for Interrupts
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