Struct engine::vault::ChainId[][src]

#[repr(transparent)]
pub struct ChainId(_);

A chain identifier. Used to identify a set of transactions in a version.

Implementations

impl ChainId[src]

pub fn random<P: BoxProvider>() -> Result<Self>[src]

pub fn load(data: &[u8]) -> Result<Self>[src]

Trait Implementations

impl AsRef<[u8]> for ChainId[src]

impl Clone for ChainId[src]

impl Copy for ChainId[src]

impl Debug for ChainId[src]

impl<'de> Deserialize<'de> for ChainId[src]

impl Eq for ChainId[src]

impl Hash for ChainId[src]

impl Ord for ChainId[src]

impl PartialEq<ChainId> for ChainId[src]

impl PartialOrd<ChainId> for ChainId[src]

impl Serialize for ChainId[src]

impl StructuralEq for ChainId[src]

impl StructuralPartialEq for ChainId[src]

impl TryFrom<&'_ [u8]> for ChainId[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Vec<u8, Global>> for ChainId[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for ChainId

impl Send for ChainId

impl Sync for ChainId

impl Unpin for ChainId

impl UnwindSafe for ChainId

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToHex for T where
    T: AsRef<[u8]>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.