Struct openethereum::rpc::HttpConfiguration
source · [−]pub struct HttpConfiguration {
pub enabled: bool,
pub interface: String,
pub port: u16,
pub apis: ApiSet,
pub cors: Option<Vec<String>>,
pub hosts: Option<Vec<String>>,
pub server_threads: usize,
pub processing_threads: usize,
pub max_payload: usize,
pub keep_alive: bool,
}
Fields
enabled: bool
interface: String
port: u16
apis: ApiSet
cors: Option<Vec<String>>
hosts: Option<Vec<String>>
server_threads: usize
processing_threads: usize
max_payload: usize
keep_alive: bool
Trait Implementations
sourceimpl Clone for HttpConfiguration
impl Clone for HttpConfiguration
sourcefn clone(&self) -> HttpConfiguration
fn clone(&self) -> HttpConfiguration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for HttpConfiguration
impl Debug for HttpConfiguration
sourceimpl Default for HttpConfiguration
impl Default for HttpConfiguration
sourceimpl PartialEq<HttpConfiguration> for HttpConfiguration
impl PartialEq<HttpConfiguration> for HttpConfiguration
sourcefn eq(&self, other: &HttpConfiguration) -> bool
fn eq(&self, other: &HttpConfiguration) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &HttpConfiguration) -> bool
fn ne(&self, other: &HttpConfiguration) -> bool
This method tests for !=
.
impl StructuralPartialEq for HttpConfiguration
Auto Trait Implementations
impl RefUnwindSafe for HttpConfiguration
impl Send for HttpConfiguration
impl Sync for HttpConfiguration
impl Unpin for HttpConfiguration
impl UnwindSafe for HttpConfiguration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more