Struct tracker::SparqlCursor[][src]

pub struct SparqlCursor(_);

The <structname>TrackerSparqlCursor</structname> object represents an iterator of results.

This is an Abstract Base Class, you cannot instantiate it.

Implements

SparqlCursorExtManual

Implementations

impl SparqlCursor[src]

pub fn close(&self)[src]

Closes the iterator, making it invalid.

pub fn is_boolean(&self, column: i32) -> bool[src]

Retrieve a boolean for the current row in column.

column

column number to retrieve (first one is 0)

Returns

a gboolean.

pub fn connection(&self) -> Option<SparqlConnection>[src]

Returns the SparqlConnection associated with this SparqlCursor.

Returns

the cursor SparqlConnection. The returned object must not be unreferenced by the caller.

pub fn double(&self, column: i32) -> f64[src]

Retrieve a double for the current row in column.

column

column number to retrieve (first one is 0)

Returns

a double.

pub fn integer(&self, column: i32) -> i64[src]

Retrieve an integer for the current row in column.

column

column number to retrieve (first one is 0)

Returns

a gint64.

pub fn n_columns(&self) -> i32[src]

This method should only be called after a successful next(); otherwise its return value will be undefined.

Returns

a gint representing the number of columns available in the results to iterate.

pub fn value_type(&self, column: i32) -> SparqlValueType[src]

The data type bound to the current row in column is returned.

column

column number to retrieve (first one is 0)

Returns

a SparqlValueType.

pub fn variable_name(&self, column: i32) -> Option<GString>[src]

Retrieves the variable name for the current row in column.

column

column number to retrieve (first one is 0)

Returns

a string which must not be freed.

pub fn is_bound(&self, column: i32) -> bool[src]

If the current row and column are bound to a value, true is returned.

column

column number to retrieve (first one is 0)

Returns

a true or false.

pub fn next<P: IsA<Cancellable>>(
    &self,
    cancellable: Option<&P>
) -> Result<bool, Error>
[src]

Iterates to the next result. This is completely synchronous and it may block.

cancellable

a [gio::Cancellable][crate::gio::Cancellable] used to cancel the operation

Returns

false if no more results found, otherwise true.

pub fn next_async<P: IsA<Cancellable>, Q: FnOnce(Result<bool, Error>) + Send + 'static>(
    &self,
    cancellable: Option<&P>,
    callback: Q
)
[src]

Iterates, asynchronously, to the next result.

cancellable

a [gio::Cancellable][crate::gio::Cancellable] used to cancel the operation

callback

user-defined GAsyncReadyCallback to be called when asynchronous operation is finished.

pub fn next_async_future(
    &self
) -> Pin<Box_<dyn Future<Output = Result<bool, Error>> + 'static>>
[src]

pub fn rewind(&self)[src]

Resets the iterator to point back to the first result.

pub fn connect_n_columns_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

Trait Implementations

impl Clone for SparqlCursor[src]

impl Debug for SparqlCursor[src]

impl Display for SparqlCursor[src]

impl Hash for SparqlCursor[src]

impl Ord for SparqlCursor[src]

impl ParentClassIs for SparqlCursor[src]

type Parent = Object

impl<T: ObjectType> PartialEq<T> for SparqlCursor[src]

impl<T: ObjectType> PartialOrd<T> for SparqlCursor[src]

impl SparqlCursorExtManual for SparqlCursor[src]

impl StaticType for SparqlCursor[src]

impl Eq for SparqlCursor[src]

impl StructuralEq for SparqlCursor[src]

Auto Trait Implementations

impl RefUnwindSafe for SparqlCursor

impl !Send for SparqlCursor

impl !Sync for SparqlCursor

impl Unpin for SparqlCursor

impl UnwindSafe for SparqlCursor

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> Cast for T where
    T: ObjectType, 

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

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

impl<T> ObjectExt for T where
    T: ObjectType, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: Send + ToValue + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[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.

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 

impl<'a, T, C> FromValueOptional<'a> for T where
    C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
    T: FromValue<'a, Checker = C>,