pub struct NetworkId(/* private fields */);Expand description
A network ID.
0 refers to ethereum, and rollups are numbered from 1 to u32::MAX.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NetworkId
impl<'de> Deserialize<'de> for NetworkId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NetworkId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NetworkId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<RollupIndex> for NetworkId
impl From<RollupIndex> for NetworkId
Source§fn from(value: RollupIndex) -> NetworkId
fn from(value: RollupIndex) -> NetworkId
Converts to this type from the input type.
Source§impl Ord for NetworkId
impl Ord for NetworkId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for NetworkId
impl PartialOrd for NetworkId
Source§impl Serialize for NetworkId
impl Serialize for NetworkId
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for NetworkId
impl Eq for NetworkId
impl StructuralPartialEq for NetworkId
Auto Trait Implementations§
impl Freeze for NetworkId
impl RefUnwindSafe for NetworkId
impl Send for NetworkId
impl Sync for NetworkId
impl Unpin for NetworkId
impl UnsafeUnpin for NetworkId
impl UnwindSafe for NetworkId
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