pub struct UrgentSteerStore { /* private fields */ }Implementations§
Source§impl UrgentSteerStore
impl UrgentSteerStore
pub fn new(path: impl Into<PathBuf>) -> Self
pub fn path(&self) -> &Path
pub fn load(&self) -> Result<Option<UrgentSteerRecord>>
pub fn append_message( &self, message: impl Into<String>, ) -> Result<UrgentSteerRecord>
pub fn write(&self, record: &UrgentSteerRecord) -> Result<()>
pub fn clear(&self) -> Result<()>
pub fn take(&self) -> Result<Option<UrgentSteerRecord>>
Trait Implementations§
Source§impl Clone for UrgentSteerStore
impl Clone for UrgentSteerStore
Source§fn clone(&self) -> UrgentSteerStore
fn clone(&self) -> UrgentSteerStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for UrgentSteerStore
impl RefUnwindSafe for UrgentSteerStore
impl Send for UrgentSteerStore
impl Sync for UrgentSteerStore
impl Unpin for UrgentSteerStore
impl UnsafeUnpin for UrgentSteerStore
impl UnwindSafe for UrgentSteerStore
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