pub struct AnonService<'a> { /* private fields */ }Implementations§
Source§impl<'a> AnonService<'a>
impl<'a> AnonService<'a>
pub fn new(state: &'a AppState) -> AnonService<'a>
pub async fn quick_audit( &self, who: &AnonCaller, raw_url: &str, ) -> Result<QuickAuditState, String>
pub async fn get_audit( &self, who: &AnonCaller, audit_id: &str, ) -> Result<QuickAuditState, String>
Sourcepub async fn poll_audit(
&self,
audit_id: &str,
) -> Result<QuickAuditState, String>
pub async fn poll_audit( &self, audit_id: &str, ) -> Result<QuickAuditState, String>
get_audit without the per-client throttle, for quick_audit’s wait loop.
pub async fn audit_issue_urls( &self, who: &AnonCaller, audit_id: &str, check: &str, limit: Option<u32>, offset: Option<u32>, ) -> Result<AuditIssueUrls, String>
pub async fn start_monitoring( &self, who: &AnonCaller, raw_url: &str, raw_email: &str, ) -> Result<MonitoringRequested, String>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for AnonService<'a>
impl<'a> !UnwindSafe for AnonService<'a>
impl<'a> Freeze for AnonService<'a>
impl<'a> Send for AnonService<'a>
impl<'a> Sync for AnonService<'a>
impl<'a> Unpin for AnonService<'a>
impl<'a> UnsafeUnpin for AnonService<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more