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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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) -> Self
fn from(value: RollupIndex) -> Self
Converts to this type from the input type.
Source§impl Ord for NetworkId
impl Ord for NetworkId
Source§impl PartialOrd for NetworkId
impl PartialOrd for NetworkId
Source§impl TryFrom<NetworkId> for RollupIndex
impl TryFrom<NetworkId> for RollupIndex
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 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