pub(crate) fn init(
        &mut self,
        id: usize,
        handle: *mut CURL,
        request_waker: Waker,
        response_waker: Waker,
    ) {
        // Init should not be called more than once.
        debug_assert!(self.shared.id.load() == usize::max_value());
        debug_assert!(self.request_body_waker.is_none());
        debug_assert!(self.response_body_waker.is_none());

        log::debug!("initializing handler for request [id={}]", id);
        self.shared.id.store(id);
        self.handle = handle;
        self.request_body_waker = Some(request_waker);
        self.response_body_waker = Some(response_waker);
    }
/// Initialize the handler and prepare it for the request to begin.
///
/// This is called from within the agent thread when it registers the
/// request handled by this handler with the multi handle and begins the
/// request's execution.
Initialize the handler and prepare it for the request to begin.
This is called from within the agent thread when it registers the
request handled by this handler with the multi handle and begins the
request's execution.
Initialize the handler and prepare it for the request to begin . This is called from within the agent thread when it registers the request handled by this handler with the multi handle and begins the request ' s execution .
pub(crate) fn init(
        &mut self,
        id: usize,
        handle: *mut CURL,
        request_waker: Waker,
        response_waker: Waker,
    ) {
        // Init should not be called more than once.
        debug_assert!(self.shared.id.load() == usize::max_value());
        debug_assert!(self.request_body_waker.is_none());
        debug_assert!(self.response_body_waker.is_none());
        log::debug!("initializing handler for request [id={}]", id);
        self.shared.id.store(id);
        self.handle = handle;
        self.request_body_waker = Some(request_waker);
        self.response_body_waker = Some(response_waker);
    }
pub ( crate ) fn init ( & mut self , id : usize , handle : * mut CURL , request_waker : Waker , response_waker : Waker , ) { // Init should not be called more than once. debug_assert ! ( self shared id load ( ) usize max_value ( ) ) ; debug_assert ! ( self request_body_waker is_none ( ) ) ; debug_assert ! ( self response_body_waker is_none ( ) ) ; log :: debug ! ( " " id ) ; self . shared . id . store ( id ) ; self . handle = handle ; self . request_body_waker = Some ( request_waker ) ; self . response_body_waker = Some ( response_waker ) ; }
Initialize the handler and prepare it for the request to begin.
Initialize the handler and prepare it for the request to begin .
&mut self
id
usize
handle
*mut CURL
request_waker
Waker
response_waker
Waker