pub struct Mailbox { /* private fields */ }Implementations§
Source§impl Mailbox
impl Mailbox
pub fn new(path: &Path) -> Self
pub fn notifier_lock(&self) -> Result<Option<File>>
pub fn records(&self) -> Result<Vec<Received>>
pub fn retain(&self, message: &SignedMessage, peer: &str) -> Result<()>
pub fn reserve_notice(&self) -> Result<Option<Notice>>
pub fn finish_notice(&self, id: &str, state: &str) -> Result<()>
pub fn acknowledge(&self, ids: &[(String, String)]) -> Result<usize>
Auto Trait Implementations§
impl Freeze for Mailbox
impl RefUnwindSafe for Mailbox
impl Send for Mailbox
impl Sync for Mailbox
impl Unpin for Mailbox
impl UnsafeUnpin for Mailbox
impl UnwindSafe for Mailbox
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