Struct varnishslog::store::VslStore
[−]
[src]
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]
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>
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]
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>
pub fn log_expire(
store_name: &str,
current_epoch: Wrapping<u64>,
record_epoch: Wrapping<u64>,
record_ident: VslIdent,
record: &T
)
[src]
store_name: &str,
current_epoch: Wrapping<u64>,
record_epoch: Wrapping<u64>,
record_ident: VslIdent,
record: &T
)
pub fn log_nuke(
store_name: &str,
current_epoch: Wrapping<u64>,
record_epoch: Wrapping<u64>,
record_ident: VslIdent,
record: &T
)
[src]
store_name: &str,
current_epoch: Wrapping<u64>,
record_epoch: Wrapping<u64>,
record_ident: VslIdent,
record: &T
)
pub fn insert(&mut self, ident: VslIdent, value: T) where
T: Debug,
[src]
T: Debug,
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]
ⓘImportant traits for Values<'a, T>