pub fn insert(&mut self, log: FragmentLog) -> bool {
            let fragment_id = *log.fragment_id();
            let entry = match self.entries.entry(fragment_id) {
                Entry::Occupied(_) => return false,
                Entry::Vacant(entry) => entry,
            };
            let delay = self.expirations.insert(fragment_id, self.ttl);
            entry.insert((log, delay));
            true
        }
/// Returns true if fragment was registered
Returns true if fragment was registered
Returns true if fragment was registered
pub fn insert(&mut self, log: FragmentLog) -> bool {
            let fragment_id = *log.fragment_id();
            let entry = match self.entries.entry(fragment_id) {
                Entry::Occupied(_) => return false,
                Entry::Vacant(entry) => entry,
            };
            let delay = self.expirations.insert(fragment_id, self.ttl);
            entry.insert((log, delay));
            true
        }
pub fn insert ( & mut self , log : FragmentLog ) -> bool { let fragment_id = * log . fragment_id ( ) ; let entry = match self . entries . entry ( fragment_id ) { Entry :: Occupied ( _ ) => return false , Entry :: Vacant ( entry ) => entry , } ; let delay = self . expirations . insert ( fragment_id , self . ttl ) ; entry . insert ( ( log , delay ) ) ; true }
Returns true if fragment was registered
Returns true if fragment was registered
&mut self
log
FragmentLog
&mut self
log
FragmentLog