Struct mcaptcha::easy::UpdateEasyCaptcha
source · pub struct UpdateEasyCaptcha {
tx: Sender<()>,
}
Fields§
§tx: Sender<()>
Implementations§
source§impl UpdateEasyCaptcha
impl UpdateEasyCaptcha
pub async fn spawn( data: AppData, duration: u32 ) -> Result<(Self, JoinHandle<()>), ServiceError>
pub fn abort(self)
sourceasync fn update_captcha_configurations(
data: &AppData,
rx: &mut Receiver<()>
) -> Result<(), ServiceError>
async fn update_captcha_configurations( data: &AppData, rx: &mut Receiver<()> ) -> Result<(), ServiceError>
update configurations
fn can_run(rx: &mut Receiver<()>) -> bool
pub async fn run( data: AppData, duration: u32, rx: Receiver<()> ) -> Result<JoinHandle<()>, ServiceError>
Auto Trait Implementations§
impl !RefUnwindSafe for UpdateEasyCaptcha
impl Send for UpdateEasyCaptcha
impl Sync for UpdateEasyCaptcha
impl Unpin for UpdateEasyCaptcha
impl !UnwindSafe for UpdateEasyCaptcha
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