pub struct HttpHandler { /* private fields */ }Expand description
Abstract HTTP handler. The library calls these methods to fetch CDN data. Users must provide a concrete implementation.
Both methods are pure virtual — async support is mandatory. The handler invokes @p callback exactly once when the request completes (or fails). The callback may be invoked from any thread.
Thread safety: methods may be called concurrently from multiple WorkerPool threads. The implementation must be thread-safe.
java_package=whiteout.utils — abstract opaque base. Concrete impl: utils::SimpleHttpHandler.
Implementations§
Source§impl HttpHandler
impl HttpHandler
Sourcepub fn capabilities(&self) -> u32
pub fn capabilities(&self) -> u32
Reported handler capability flags.
Trait Implementations§
Auto Trait Implementations§
impl !Sync for HttpHandler
impl Freeze for HttpHandler
impl RefUnwindSafe for HttpHandler
impl Unpin for HttpHandler
impl UnsafeUnpin for HttpHandler
impl UnwindSafe for HttpHandler
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