Struct kubos_service::Context[][src]

pub struct Context<T> { /* fields omitted */ }

Context struct used by a service to provide Juniper context, subsystem access and persistent storage.

Methods

impl<T> Context<T>
[src]

Important traits for &'a mut R

Returns a reference to the context's subsystem instance

Attempts to get a value from the context's storage

Arguments

name - Key to search for in storage

Sets a value in the context's storage

Arguments

key - Key to store value under value - Value to store

Clears a single key/value from storage

Arguments

key - Key to clear (along with corresponding value)

Clears all key/value pairs from storage

Trait Implementations

impl<T> JuniperContext for Context<T>
[src]

Auto Trait Implementations

impl<T> Send for Context<T> where
    T: Send

impl<T> !Sync for Context<T>