Enum ConfigurableGraphs

Source
pub enum ConfigurableGraphs {
    LocalFile(LocalFileSourceGraph),
    GraphStoreHttp(GraphStoreHttpSourceGraph),
}

Variants§

Trait Implementations§

Source§

impl ConfigurableGraph for ConfigurableGraphs

Source§

impl Debug for ConfigurableGraphs

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Graph for ConfigurableGraphs

Source§

type View<'g> = &'g ConfigurableGraphs

Source§

fn view(&self) -> impl Future<Output = Self::View<'_>> + Send

Source§

async fn add(&mut self, triple: Arc<Triple>) -> Result<(), GraphError>

Source§

async fn merge<G>(&mut self, source_graph: G) -> Result<(), GraphError>
where G: GraphView,

Source§

fn remove( &mut self, triple: TripleRef<'_>, ) -> impl Future<Output = Result<(), GraphError>> + Send

Source§

fn merge_stream<S, E>( &mut self, stream: S, ) -> impl Future<Output = Result<(), GraphError>> + Send
where S: Stream<Item = Result<Arc<Triple>, E>> + Unpin + Send, GraphError: From<E>, E: Send,

Source§

impl<'g> GraphView for &'g ConfigurableGraphs

Source§

type Stream = Box<dyn Stream<Item = Result<Arc<Triple>, GraphError>> + Unpin + Send + 'g>

Source§

type Filter<FilterType> = DefaultFilter<&'g ConfigurableGraphs, FilterType> where FilterType: TripleFilter + Send + Sync + Unpin + Clone

Source§

type Matches<'matches> = DefaultMatches<'matches, &'g ConfigurableGraphs>

Source§

type Describe<'describe> = DefaultDescribe<'describe, &'g ConfigurableGraphs>

Source§

type SubjectStream<'stream> = Map<<<&'g ConfigurableGraphs as GraphView>::Matches<'stream> as GraphView>::Stream, fn(Result<Arc<Triple>, GraphError>) -> Result<Arc<Term>, GraphError>>

Source§

type PredicateStream<'stream> = Map<<<&'g ConfigurableGraphs as GraphView>::Matches<'stream> as GraphView>::Stream, fn(Result<Arc<Triple>, GraphError>) -> Result<Arc<Term>, GraphError>>

Source§

type ObjectStream<'stream> = Map<<<&'g ConfigurableGraphs as GraphView>::Matches<'stream> as GraphView>::Stream, fn(Result<Arc<Triple>, GraphError>) -> Result<Arc<Term>, GraphError>>

Source§

type CBD = CBD<&'g ConfigurableGraphs>

Source§

async fn stream(self) -> Result<Self::Stream, GraphError>

Source§

async fn filter<FilterType>( self, filter: FilterType, ) -> Result<Self::Filter<FilterType>, GraphError>
where FilterType: TripleFilter + Send + Sync + Unpin + Clone,

Source§

async fn matches<'matches>( self, subject: Option<&'matches Term>, predicate: Option<&'matches Term>, object: Option<&'matches Term>, limit: Option<usize>, ) -> Result<Self::Matches<'matches>, GraphError>

Source§

async fn describe( self, subject: Option<&Term>, limit: Option<usize>, ) -> Result<Self::Describe<'_>, GraphError>

Source§

async fn subjects<'stream>( self, arg1: Option<&'stream Term>, arg2: Option<&'stream Term>, limit: Option<usize>, ) -> Result<Self::SubjectStream<'stream>, GraphError>

Source§

async fn predicates<'stream>( self, arg1: Option<&'stream Term>, arg2: Option<&'stream Term>, limit: Option<usize>, ) -> Result<Self::PredicateStream<'stream>, GraphError>

Source§

async fn objects<'stream>( self, arg1: Option<&'stream Term>, arg2: Option<&'stream Term>, limit: Option<usize>, ) -> Result<Self::ObjectStream<'stream>, GraphError>

Source§

fn cbd( self, subject: &Term, ) -> impl Future<Output = Result<Self::CBD, GraphError>>

Example Read more
Source§

fn subject( self, predicate: Option<&Term>, object: Option<&Term>, ) -> impl Future<Output = Result<Option<Arc<Term>>, GraphError>> + Send

Source§

fn predicate( self, subject: Option<&Term>, object: Option<&Term>, ) -> impl Future<Output = Result<Option<Arc<Term>>, GraphError>> + Send

Source§

fn object( self, subject: Option<&Term>, predicate: Option<&Term>, ) -> impl Future<Output = Result<Option<Arc<Term>>, GraphError>> + Send

Source§

fn contains( self, triple: TripleRef<'_>, ) -> impl Future<Output = Result<bool, GraphError>> + Send

Source§

fn ground(self) -> impl Future<Output = Result<bool, GraphError>> + Send

Checks whether graph is ground as defined by RDF Concepts and Abstract Syntax Read more
Source§

fn default_triple_size_hint() -> usize

Source§

fn default_buf_size_hint() -> usize

Source§

fn triple_size_hint(&self) -> usize

Source§

fn buf_size_hint(&self) -> usize

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T