#[non_exhaustive]#[repr(u32)]pub enum AnvilEnvironmentError {
InvalidArguments {
details: String,
arguments: String,
},
ServerStartupFailed {
host_requested: String,
port_requested: u32,
details: String,
},
LogFileAccessFailed {
log_file_path: String,
wrapped_error: String,
},
LogFileWriteFailed {
log_filename: String,
wrapped_error: String,
},
GenericError {
message: String,
},
}
Expand description
Domain: AnvilZKsync
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidArguments
§Summary
Invalid command line arguments provided.
§Description
There are missing or invalid command line arguments, or an invalid combination of arguments is provided.
ServerStartupFailed
§Summary
Failed to start the server and bind it to the requested host and port.
§Description
Anvil-zksync starts the server and listens to requests on a specified host and port, 0.0.0.0:8011 by default. They are configurable using --host
and --port
command line arguments.
The host and port used by anvil-zksync are also displayed when you start anvil-zksync:
========================================
Listening on 0.0.0.0:8011
========================================
This error indicates that listening on the specified host and port failed.
LogFileAccessFailed
§Summary
Unable to access log file.
§Description
Anvil-zksync was unable to open log file for writing.
By default, the log file is searched for at ./anvil-zksync.log
.
You may provide this path explicitly through the CLI argument --log-file-path
.
LogFileWriteFailed
§Summary
Unable to append to log file. Details: {wrapped_error}
§Description
Anvil-zksync was unable to write logs to the selected file.
By default, the log file is searched for at ./anvil-zksync.log
.
You may provide this path explicitly through the CLI argument --log-file-path
.
GenericError
Trait Implementations§
Source§impl AsRef<str> for AnvilEnvironment
impl AsRef<str> for AnvilEnvironment
Source§impl Clone for AnvilEnvironment
impl Clone for AnvilEnvironment
Source§fn clone(&self) -> AnvilEnvironment
fn clone(&self) -> AnvilEnvironment
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more