Struct steamworks::QueryResults[][src]

pub struct QueryResults<'a> { /* fields omitted */ }

Query results

Implementations

impl<'a> QueryResults<'a>[src]

pub fn was_cached(&self) -> bool[src]

Were these results retreived from a cache?

pub fn total_results(&self) -> u32[src]

Gets the total number of results in this query, not just the current page

pub fn returned_results(&self) -> u32[src]

Gets the number of results in this page.

pub fn get(&self, index: u32) -> Option<QueryResult>[src]

Gets a result.

Returns None if index was out of bounds.

pub fn iter<'b>(&'b self) -> impl Iterator<Item = QueryResult> + 'b[src]

Returns an iterator that runs over all the fetched results

Trait Implementations

impl<'a> Drop for QueryResults<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for QueryResults<'a>

impl<'a> !Send for QueryResults<'a>

impl<'a> !Sync for QueryResults<'a>

impl<'a> Unpin for QueryResults<'a>

impl<'a> UnwindSafe for QueryResults<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.