[−][src]Enum nash_protocol::types::exchange::Nonce
Nonces are 32 bit integers. They increment over time such that data with lower nonces that has already been observed are rejected by the matching engine and smart contract.
Variants
Value(u32)Implementations
impl Nonce[src]
pub fn to_be_bytes(&self) -> [u8; 4][src]
Serialize Nonce for ETH payload as BigEndian bytes
pub fn from_be_bytes(bytes: [u8; 4]) -> Result<Self>[src]
Create a nonce from ETH payload bytes
impl Nonce[src]
pub fn to_le_bytes(&self) -> [u8; 8][src]
Serialize Nonce for NEO payload as 8 bytes LittleEndian
impl Nonce[src]
pub fn crosschain() -> u32[src]
Trait Implementations
impl Clone for Nonce[src]
impl Copy for Nonce[src]
impl Debug for Nonce[src]
impl Eq for Nonce[src]
impl<'_> From<&'_ u32> for Nonce[src]
impl From<u32> for Nonce[src]
impl Hash for Nonce[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Into<i64> for Nonce[src]
impl Into<u32> for Nonce[src]
impl PartialEq<Nonce> for Nonce[src]
impl StructuralEq for Nonce[src]
impl StructuralPartialEq for Nonce[src]
Auto Trait Implementations
impl RefUnwindSafe for Nonce
impl Send for Nonce
impl Sync for Nonce
impl Unpin for Nonce
impl UnwindSafe for Nonce
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,