Struct openethereum::rpc::WsConfiguration
source · [−]pub struct WsConfiguration {
pub enabled: bool,
pub interface: String,
pub port: u16,
pub apis: ApiSet,
pub max_connections: usize,
pub origins: Option<Vec<String>>,
pub hosts: Option<Vec<String>>,
pub signer_path: PathBuf,
pub support_token_api: bool,
pub max_payload: usize,
}Fields
enabled: boolinterface: Stringport: u16apis: ApiSetmax_connections: usizeorigins: Option<Vec<String>>hosts: Option<Vec<String>>signer_path: PathBufsupport_token_api: boolmax_payload: usizeImplementations
Trait Implementations
sourceimpl Clone for WsConfiguration
impl Clone for WsConfiguration
sourcefn clone(&self) -> WsConfiguration
fn clone(&self) -> WsConfiguration
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 WsConfiguration
impl Debug for WsConfiguration
sourceimpl Default for WsConfiguration
impl Default for WsConfiguration
sourceimpl PartialEq<WsConfiguration> for WsConfiguration
impl PartialEq<WsConfiguration> for WsConfiguration
sourcefn eq(&self, other: &WsConfiguration) -> bool
fn eq(&self, other: &WsConfiguration) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &WsConfiguration) -> bool
fn ne(&self, other: &WsConfiguration) -> bool
This method tests for !=.
impl StructuralPartialEq for WsConfiguration
Auto Trait Implementations
impl RefUnwindSafe for WsConfiguration
impl Send for WsConfiguration
impl Sync for WsConfiguration
impl Unpin for WsConfiguration
impl UnwindSafe for WsConfiguration
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