pub struct NodeLoader<RequestCtx: RequestContext> { /* private fields */ }

Implementations

Trait Implementations

The type used to look up a single value in a batch.

The type returned in a batch. Value is usually a single database record, but could also be a more sophisticated type, such as a Vec of values for a Fetcher that deals with one-to-many relationships. Read more

The error indicating that fetching a batch failed.

Retrieve the values associated with the given keys, and insert them into values if found. If Ok(_) is returned, then any keys not inserted into values will be marked as “not found” (meaning any future attempts to retrieve them will fail). If Err(_) is returned, then the caller(s) waiting on the batch will receive a LoadError::FetchError with the message from returned error (note that any values inserted into values before the Err(_) is returned will still be cached). See the Batcher docs for more details. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

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

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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

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