[][src]Struct varnishslog::store::VslStore

pub struct VslStore<T: Debug> { /* fields omitted */ }

Methods

impl<T: Debug> VslStore<T>[src]

pub fn new(
    name: &'static str,
    on_expire: Option<fn(_: &str, _: Wrapping<u64>, _: Wrapping<u64>, _: VslIdent, _: &T)>,
    on_nuke: Option<fn(_: &str, _: Wrapping<u64>, _: Wrapping<u64>, _: VslIdent, _: &T)>
) -> VslStore<T>
[src]

pub fn with_config(
    name: &'static str,
    on_expire: Option<fn(_: &str, _: Wrapping<u64>, _: Wrapping<u64>, _: VslIdent, _: &T)>,
    on_nuke: Option<fn(_: &str, _: Wrapping<u64>, _: Wrapping<u64>, _: VslIdent, _: &T)>,
    config: &Config
) -> VslStore<T>
[src]

pub fn log_expire(
    store_name: &str,
    current_epoch: Wrapping<u64>,
    record_epoch: Wrapping<u64>,
    record_ident: VslIdent,
    record: &T
)
[src]

pub fn log_nuke(
    store_name: &str,
    current_epoch: Wrapping<u64>,
    record_epoch: Wrapping<u64>,
    record_ident: VslIdent,
    record: &T
)
[src]

pub fn insert(&mut self, ident: VslIdent, value: T) where
    T: Debug
[src]

pub fn get_mut(&mut self, ident: &VslIdent) -> Option<&mut T>[src]

pub fn get(&self, ident: &VslIdent) -> Option<&T>[src]

pub fn contains_key(&self, ident: &VslIdent) -> bool[src]

pub fn remove(&mut self, ident: &VslIdent) -> Option<T>[src]

Important traits for Values<'a, T>
pub fn values(&self) -> Values<T>[src]

Trait Implementations

impl<T: Debug + Debug> Debug for VslStore<T>[src]

Auto Trait Implementations

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

impl<T> Sync for VslStore<T> where
    T: Sync

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.