pub struct TracingAdapter<'vertex, AdapterT>{
pub tracer: Rc<RefCell<Tracer>>,
/* private fields */
}Expand description
Traces an inner adapter. Constructed with TracingAdapter::new(). Each
tracer is only valid for one query. When switching between queries, if you
use the same adapter, ensure you first call TracingAdapter::finish(),
otherwise the new operations will be traced with the old.
Fields§
§tracer: Rc<RefCell<Tracer>>Implementations§
Trait Implementations§
Source§impl<'vertex, AdapterT> Adapter<'vertex> for TracingAdapter<'vertex, AdapterT>
impl<'vertex, AdapterT> Adapter<'vertex> for TracingAdapter<'vertex, AdapterT>
Source§fn resolve_starting_vertices(
&self,
edge_name: &Arc<str>,
parameters: &EdgeParameters,
resolve_info: &ResolveInfo,
) -> VertexIterator<'vertex, Self::Vertex>
fn resolve_starting_vertices( &self, edge_name: &Arc<str>, parameters: &EdgeParameters, resolve_info: &ResolveInfo, ) -> VertexIterator<'vertex, Self::Vertex>
Produce an iterator of vertices for the specified starting edge. Read more
Source§fn resolve_property<V: AsVertex<Self::Vertex> + 'vertex>(
&self,
contexts: ContextIterator<'vertex, V>,
type_name: &Arc<str>,
property_name: &Arc<str>,
resolve_info: &ResolveInfo,
) -> ContextOutcomeIterator<'vertex, V, FieldValue>
fn resolve_property<V: AsVertex<Self::Vertex> + 'vertex>( &self, contexts: ContextIterator<'vertex, V>, type_name: &Arc<str>, property_name: &Arc<str>, resolve_info: &ResolveInfo, ) -> ContextOutcomeIterator<'vertex, V, FieldValue>
Resolve a property required by the query that’s being evaluated. Read more
Source§fn resolve_neighbors<V: AsVertex<Self::Vertex> + 'vertex>(
&self,
contexts: ContextIterator<'vertex, V>,
type_name: &Arc<str>,
edge_name: &Arc<str>,
parameters: &EdgeParameters,
resolve_info: &ResolveEdgeInfo,
) -> ContextOutcomeIterator<'vertex, V, VertexIterator<'vertex, Self::Vertex>>
fn resolve_neighbors<V: AsVertex<Self::Vertex> + 'vertex>( &self, contexts: ContextIterator<'vertex, V>, type_name: &Arc<str>, edge_name: &Arc<str>, parameters: &EdgeParameters, resolve_info: &ResolveEdgeInfo, ) -> ContextOutcomeIterator<'vertex, V, VertexIterator<'vertex, Self::Vertex>>
Resolve the neighboring vertices across an edge. Read more
Source§fn resolve_coercion<V: AsVertex<Self::Vertex> + 'vertex>(
&self,
contexts: ContextIterator<'vertex, V>,
type_name: &Arc<str>,
coerce_to_type: &Arc<str>,
resolve_info: &ResolveInfo,
) -> ContextOutcomeIterator<'vertex, V, bool>
fn resolve_coercion<V: AsVertex<Self::Vertex> + 'vertex>( &self, contexts: ContextIterator<'vertex, V>, type_name: &Arc<str>, coerce_to_type: &Arc<str>, resolve_info: &ResolveInfo, ) -> ContextOutcomeIterator<'vertex, V, bool>
Attempt to coerce vertices to a subtype, as required by the query that’s being evaluated. Read more
Source§impl<'vertex, AdapterT> Clone for TracingAdapter<'vertex, AdapterT>
impl<'vertex, AdapterT> Clone for TracingAdapter<'vertex, AdapterT>
Source§fn clone(&self) -> TracingAdapter<'vertex, AdapterT>
fn clone(&self) -> TracingAdapter<'vertex, AdapterT>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'vertex, AdapterT> Freeze for TracingAdapter<'vertex, AdapterT>
impl<'vertex, AdapterT> !RefUnwindSafe for TracingAdapter<'vertex, AdapterT>
impl<'vertex, AdapterT> !Send for TracingAdapter<'vertex, AdapterT>
impl<'vertex, AdapterT> !Sync for TracingAdapter<'vertex, AdapterT>
impl<'vertex, AdapterT> Unpin for TracingAdapter<'vertex, AdapterT>
impl<'vertex, AdapterT> !UnwindSafe for TracingAdapter<'vertex, AdapterT>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more