Enum log4rs_routing_appender::route::Entry
[−]
[src]
pub enum Entry<'a> { Occupied(OccupiedEntry<'a>), Vacant(VacantEntry<'a>), }
A (possibly vacant) entry of a Cache
.
Variants
Occupied(OccupiedEntry<'a>)
An entry which is present in the Cache
.
Vacant(VacantEntry<'a>)
An entry which is not present in the Cache
.
Methods
impl<'a> Entry<'a>
[src]
fn or_insert_with<F>(self, f: F) -> Appender where F: FnOnce() -> Box<Append>
Returns the value of the entry, using the provided closure to create and insert it if the entry is not present in the cache.