[−][src]Struct varnishslog::store::VslStore
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>
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,