pub struct EdgeDetector { /* private fields */ }
Implementations§
Source§impl EdgeDetector
impl EdgeDetector
pub fn new(prometheus_url: impl Display) -> Self
pub async fn get_last_edge( &self, query: &str, from: u64, to: u64, max_age: Duration, ) -> Result<Option<u64>, Error>
pub async fn get_edge_between( &self, query: &str, from: u64, to: u64, start_time: u64, end_time: u64, ) -> Result<Option<u64>, Error>
Trait Implementations§
Source§impl Clone for EdgeDetector
impl Clone for EdgeDetector
Source§fn clone(&self) -> EdgeDetector
fn clone(&self) -> EdgeDetector
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 EdgeDetector
impl !RefUnwindSafe for EdgeDetector
impl Send for EdgeDetector
impl Sync for EdgeDetector
impl Unpin for EdgeDetector
impl !UnwindSafe for EdgeDetector
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