pub fn serialized_writes_scope<E>(
request: SetScopeRequest<'_>,
) -> Result<Box<dyn SetScope>, BeginSetError<E>>Expand description
A SetScope that does nothing, for a backend that already serializes
every write per account.
Correct only when the backend applies every write to an account one
at a time, so no other writer can commit between this method’s
precondition reads and its writes (§6.1, e.g. one lock held for each
whole method call). It refuses SetMode::Atomic with
BeginSetError::CannotApplyAtomically, because it cannot undo
writes. Test backends use it too.
§Errors
BeginSetError::CannotApplyAtomically for an atomic request.