pub struct Engine(/* private fields */);Expand description
The main entry point for querying the XDCC engine.
Engine is a lightweight, cloneable wrapper around an internal HTTP client.
It provides a search method that sends a request to the XDCC listing service
and returns a parsed list of results.
Implementations§
Source§impl Engine
impl Engine
Sourcepub async fn search(&self, query: &str, page: u8) -> Result<Vec<Entry>>
pub async fn search(&self, query: &str, page: u8) -> Result<Vec<Entry>>
Queries the XDCC engine for packs matching the given search term and page number.
§Arguments
query- The search term (e.g., a keyword or filename).page- The page number to fetch (starting from 1).
§Returns
A Vec<Entry> containing the parsed pack information.
§Errors
Returns a reqwest::Error if the request fails or the response is malformed.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Engine
impl !UnwindSafe for Engine
impl Freeze for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnsafeUnpin for Engine
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