Struct ark_api::world::SpatialQuery
source · [−]pub struct SpatialQuery { /* private fields */ }
Expand description
Represents an ongoing spatial query.
Implementations
sourceimpl SpatialQuery
impl SpatialQuery
sourcepub fn enqueue_request_in_global_queue(request: &SpatialQueryRequest) -> Self
pub fn enqueue_request_in_global_queue(request: &SpatialQueryRequest) -> Self
Request a spatial query
Will put it in the global queue to be executed later
when running EntityMessenger::get().process_events()
sourcepub fn enqueue_request(
request: &SpatialQueryRequest,
queue: &mut EntityMessageQueue
) -> Self
pub fn enqueue_request(
request: &SpatialQueryRequest,
queue: &mut EntityMessageQueue
) -> Self
Request a spatial query
Will put it in a queue of your choice to be executed on request.
sourcepub fn result(&self) -> MessageResponse<&[SpatialQueryHit]>
pub fn result(&self) -> MessageResponse<&[SpatialQueryHit]>
Query the result of the spatial query
Auto Trait Implementations
impl RefUnwindSafe for SpatialQuery
impl Send for SpatialQuery
impl Sync for SpatialQuery
impl Unpin for SpatialQuery
impl UnwindSafe for SpatialQuery
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more