pub fn persisted(&self, sequence_number: SequenceNumber) -> bool {
        // with both buffered and persisted data, need to
        // ensure that no data is buffered to know that all is
        // persisted
        match (&self.min_buffered, &self.max_persisted) {
            (Some(min_buffered), Some(max_persisted)) => {
                // with both buffered and persisted data, need to
                // ensure that no data is buffered to know that all is
                // persisted
                &sequence_number < min_buffered && &sequence_number <= max_persisted
            }
            (None, Some(max_persisted)) => &sequence_number <= max_persisted,
            (_, None) => {
                false // data not yet persisted
            }
        }
    }
// return true if this sequence number is persisted
return true if this sequence number is persisted
return true if this sequence number is persisted
pub fn persisted(&self, sequence_number: SequenceNumber) -> bool {
        // with both buffered and persisted data, need to
        // ensure that no data is buffered to know that all is
        // persisted
        match (&self.min_buffered, &self.max_persisted) {
            (Some(min_buffered), Some(max_persisted)) => {
                // with both buffered and persisted data, need to
                // ensure that no data is buffered to know that all is
                // persisted
                &sequence_number < min_buffered && &sequence_number <= max_persisted
            }
            (None, Some(max_persisted)) => &sequence_number <= max_persisted,
            (_, None) => {
                false // data not yet persisted
            }
        }
    }
pub fn persisted ( & self , sequence_number : SequenceNumber ) -> bool { // with both buffered and persisted data, need to // ensure that no data is buffered to know that all is // persisted match ( & self . min_buffered , & self . max_persisted ) { ( Some ( min_buffered ) , Some ( max_persisted ) ) => { // with both buffered and persisted data, need to // ensure that no data is buffered to know that all is // persisted & sequence_number < min_buffered && & sequence_number <= max_persisted } ( None , Some ( max_persisted ) ) => & sequence_number <= max_persisted , ( _ , None ) => { false // data not yet persisted } } }
return true if this sequence number is persisted
return true if this sequence number is persisted
&self
sequence_number
SequenceNumber
&self
sequence_number
SequenceNumber