pub struct CScrapeResult {
pub rooms: *mut CRoomInfo,
pub rooms_len: usize,
pub users: *mut CLoggedInUser,
pub users_len: usize,
pub error_code: c_uint,
/* private fields */
}Expand description
C-compatible scrape result.
rooms_cap / users_cap store the actual Vec capacity so that
scraper_free_result can reconstruct the Vec correctly.
FIX: these fields were previously pub, which allowed C/C++ code to
accidentally modify them. They are now private to Rust; the C header
still documents them as “internal – do not modify”.
Fields§
§rooms: *mut CRoomInfo§rooms_len: usize§users: *mut CLoggedInUser§users_len: usize§error_code: c_uint0 = success, non-zero = error (call scraper_last_error() for message)
Auto Trait Implementations§
impl !Send for CScrapeResult
impl !Sync for CScrapeResult
impl Freeze for CScrapeResult
impl RefUnwindSafe for CScrapeResult
impl Unpin for CScrapeResult
impl UnsafeUnpin for CScrapeResult
impl UnwindSafe for CScrapeResult
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