pub enum MethodSafety {
Safe,
Idempotent,
Unsafe,
}Expand description
Classification of JSON-RPC method safety for retry/dedup decisions.
Variants§
Safe
Safe to retry, deduplicate, and cache. Read-only methods.
Idempotent
Idempotent — same tx hash is safe to re-submit, but NEVER auto-retry with different parameters. e.g. eth_sendRawTransaction (same raw tx = same hash).
Unsafe
NEVER auto-retry. Retrying could cause double-spend or duplicate side effects. e.g. eth_sendTransaction (node signs, different nonce possible).
Trait Implementations§
Source§impl Clone for MethodSafety
impl Clone for MethodSafety
Source§fn clone(&self) -> MethodSafety
fn clone(&self) -> MethodSafety
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MethodSafety
impl Debug for MethodSafety
Source§impl PartialEq for MethodSafety
impl PartialEq for MethodSafety
impl Copy for MethodSafety
impl Eq for MethodSafety
impl StructuralPartialEq for MethodSafety
Auto Trait Implementations§
impl Freeze for MethodSafety
impl RefUnwindSafe for MethodSafety
impl Send for MethodSafety
impl Sync for MethodSafety
impl Unpin for MethodSafety
impl UnsafeUnpin for MethodSafety
impl UnwindSafe for MethodSafety
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