pub enum MemoryWriteOutcome {
Remembered,
AlreadyRemembered,
NotRemembered,
}Expand description
What became of a write.
Retrying is a normal thing for a caller to do — a network gave up, a process restarted — and the second attempt must not double the memory. Saying which of the two happened, rather than answering “fine” both times, is what lets a caller tell a retry that worked from a write it never sent.
Variants§
Remembered
The entries are now in memory, put there by this call.
AlreadyRemembered
This exact write had already been made. Nothing changed.
NotRemembered
The backend does not keep memory, and said so in its capabilities. Not an error: a session with nowhere to record what it decided still runs, it just forgets.
Trait Implementations§
Source§impl Clone for MemoryWriteOutcome
impl Clone for MemoryWriteOutcome
Source§fn clone(&self) -> MemoryWriteOutcome
fn clone(&self) -> MemoryWriteOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MemoryWriteOutcome
Source§impl Debug for MemoryWriteOutcome
impl Debug for MemoryWriteOutcome
impl Eq for MemoryWriteOutcome
Source§impl PartialEq for MemoryWriteOutcome
impl PartialEq for MemoryWriteOutcome
impl StructuralPartialEq for MemoryWriteOutcome
Auto Trait Implementations§
impl Freeze for MemoryWriteOutcome
impl RefUnwindSafe for MemoryWriteOutcome
impl Send for MemoryWriteOutcome
impl Sync for MemoryWriteOutcome
impl Unpin for MemoryWriteOutcome
impl UnsafeUnpin for MemoryWriteOutcome
impl UnwindSafe for MemoryWriteOutcome
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