pub struct PreparedJobSet { /* private fields */ }Implementations§
Source§impl PreparedJobSet
impl PreparedJobSet
pub fn insert( &mut self, job: PreparedMiningJob, ) -> Result<Arc<PreparedMiningJob>, MiningError>
pub fn activate( &mut self, job_id: MiningJobId, snapshot: MiningSnapshot, ) -> Result<Arc<PreparedMiningJob>, MiningError>
pub fn retain_generation(&mut self, generation: MiningGeneration)
pub fn clear(&mut self)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for PreparedJobSet
impl Clone for PreparedJobSet
Source§fn clone(&self) -> PreparedJobSet
fn clone(&self) -> PreparedJobSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PreparedJobSet
impl Debug for PreparedJobSet
Source§impl Default for PreparedJobSet
impl Default for PreparedJobSet
Source§fn default() -> PreparedJobSet
fn default() -> PreparedJobSet
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PreparedJobSet
impl RefUnwindSafe for PreparedJobSet
impl Send for PreparedJobSet
impl Sync for PreparedJobSet
impl Unpin for PreparedJobSet
impl UnsafeUnpin for PreparedJobSet
impl UnwindSafe for PreparedJobSet
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