[][src]Struct rocket_include_handlebars::HandlebarsContextManager

pub struct HandlebarsContextManager {
    pub handlebars: Mutex<ReloadableHandlebars>,
    // some fields omitted
}

To monitor the state of Handlebars.

Fields

handlebars: Mutex<ReloadableHandlebars>

Methods

impl HandlebarsContextManager[src]

pub fn clear_cache(&self)[src]

Clear cache.

pub fn contains_key<S: AsRef<str>>(&self, key: S) -> bool[src]

Check if a cache key exists.

pub fn get<S: AsRef<str>>(&self, key: S) -> Option<(Arc<str>, Arc<EntityTag>)>[src]

Get the cache by a specific key.

pub fn insert<S: Into<Arc<str>>>(
    &self,
    key: S,
    cache: (Arc<str>, Arc<EntityTag>)
) -> Option<(Arc<str>, Arc<EntityTag>)>
[src]

Insert a cache.

Trait Implementations

impl Debug for HandlebarsContextManager[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for T[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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

impl<T> IntoCollection<T> for T

impl<T, I> AsResult<T, I> for T where
    I: Input,