pub struct Bulk<'a> { /* private fields */ }Expand description
Bulk checks. Get one with Client::bulk.
Implementations§
Source§impl<'a> Bulk<'a>
impl<'a> Bulk<'a>
Sourcepub async fn check(&self, req: &BulkRequest) -> Result<BulkCheck, Error>
pub async fn check(&self, req: &BulkRequest) -> Result<BulkCheck, Error>
Checks a list of IPs and returns every result in one response.
Sourcepub async fn stream(&self, req: &BulkRequest) -> Result<BulkStream, Error>
pub async fn stream(&self, req: &BulkRequest) -> Result<BulkStream, Error>
Streams one event per IP as NDJSON; 400 and 429 before the stream starts are returned here.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Bulk<'a>
impl<'a> !UnwindSafe for Bulk<'a>
impl<'a> Freeze for Bulk<'a>
impl<'a> Send for Bulk<'a>
impl<'a> Sync for Bulk<'a>
impl<'a> Unpin for Bulk<'a>
impl<'a> UnsafeUnpin for Bulk<'a>
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