Enum eventstore_tcp::adapted::WriteEventsFailure
[−]
[src]
pub enum WriteEventsFailure { PrepareTimeout, CommitTimeout, ForwardTimeout, WrongExpectedVersion, StreamDeleted, AccessDenied, }
Like OperationResult
on the wire but does not have a success value. Explains the reason for
failure.
Variants
PrepareTimeout
Server failed to process the request before timeout
CommitTimeout
Server timed out while awaiting commit to be processed
ForwardTimeout
Server timed out while awaiting for a forwarded request to complete
WrongExpectedVersion
Optimistic locking failure; stream version was not the expected
StreamDeleted
Stream has been deleted
AccessDenied
No authentication provided or insufficient permissions to a stream
Methods
impl WriteEventsFailure
[src]
fn is_transient(&self) -> bool
Return true
if the operation failed in a transient way that might be resolved by
retrying.
Trait Implementations
impl Debug for WriteEventsFailure
[src]
impl Clone for WriteEventsFailure
[src]
fn clone(&self) -> WriteEventsFailure
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for WriteEventsFailure
[src]
fn eq(&self, __arg_0: &WriteEventsFailure) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for WriteEventsFailure
[src]
impl Copy for WriteEventsFailure
[src]
impl From<OperationResult> for WriteEventsFailure
[src]
fn from(or: OperationResult) -> Self
Performs the conversion.
impl Into<OperationResult> for WriteEventsFailure
[src]
fn into(self) -> OperationResult
Performs the conversion.