pub struct ConfigHistory { /* private fields */ }Expand description
配置变更历史
Implementations§
Source§impl ConfigHistory
impl ConfigHistory
pub fn new(max_records: usize) -> Self
pub fn max_records(&self) -> usize
pub fn add_record(&mut self, record: ConfigChangeRecord)
pub fn get_records(&self) -> &[ConfigChangeRecord]
pub fn get_latest(&self) -> Option<&ConfigChangeRecord>
pub fn clear(&mut self)
Trait Implementations§
Source§impl Clone for ConfigHistory
impl Clone for ConfigHistory
Source§impl Debug for ConfigHistory
impl Debug for ConfigHistory
Auto Trait Implementations§
impl Freeze for ConfigHistory
impl RefUnwindSafe for ConfigHistory
impl Send for ConfigHistory
impl Sync for ConfigHistory
impl Unpin for ConfigHistory
impl UnsafeUnpin for ConfigHistory
impl UnwindSafe for ConfigHistory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more