Struct firestore::errors::FirestoreErrorInTransaction
source · pub struct FirestoreErrorInTransaction {
pub transaction_id: FirestoreTransactionId,
pub source: Box<dyn Error + Send + Sync>,
}Fields§
§transaction_id: FirestoreTransactionId§source: Box<dyn Error + Send + Sync>Implementations§
source§impl FirestoreErrorInTransaction
impl FirestoreErrorInTransaction
pub fn new( transaction_id: FirestoreTransactionId, source: Box<dyn Error + Send + Sync> ) -> Self
pub fn transaction_id(&mut self, value: FirestoreTransactionId) -> &mut Self
pub fn with_transaction_id(self, value: FirestoreTransactionId) -> Self
pub fn source(&mut self, value: Box<dyn Error + Send + Sync>) -> &mut Self
pub fn with_source(self, value: Box<dyn Error + Send + Sync>) -> Self
source§impl FirestoreErrorInTransaction
impl FirestoreErrorInTransaction
pub fn permanent<E: Error + Send + Sync + 'static>( transaction: &FirestoreTransaction<'_>, source: E ) -> BackoffError<FirestoreError>
pub fn transient<E: Error + Send + Sync + 'static>( transaction: &FirestoreTransaction<'_>, source: E ) -> BackoffError<FirestoreError>
pub fn retry_after<E: Error + Send + Sync + 'static>( transaction: &FirestoreTransaction<'_>, source: E, retry_after: Duration ) -> BackoffError<FirestoreError>
Trait Implementations§
source§impl Debug for FirestoreErrorInTransaction
impl Debug for FirestoreErrorInTransaction
source§impl Error for FirestoreErrorInTransaction
impl Error for FirestoreErrorInTransaction
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<FirestoreErrorInTransactionInit> for FirestoreErrorInTransaction
impl From<FirestoreErrorInTransactionInit> for FirestoreErrorInTransaction
source§fn from(value: FirestoreErrorInTransactionInit) -> Self
fn from(value: FirestoreErrorInTransactionInit) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for FirestoreErrorInTransaction
impl Send for FirestoreErrorInTransaction
impl Sync for FirestoreErrorInTransaction
impl Unpin for FirestoreErrorInTransaction
impl !UnwindSafe for FirestoreErrorInTransaction
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request