Struct reception::ListenerConfig
source · pub struct ListenerConfig {
pub interface: String,
pub port: u16,
pub websocket_config: WebSocketConfig,
pub connection_config: ConnectionConfig,
}Expand description
Configures the listener.
Fields§
§interface: StringInterface to which the listener will bind.
Default: "127.0.0.1"
port: u16Port to which the listener will bind.
Default: 8080
websocket_config: WebSocketConfigConfiguration for WebSockets.
connection_config: ConnectionConfigConfiguration for peer connections.
Trait Implementations§
source§impl Clone for ListenerConfig
impl Clone for ListenerConfig
source§fn clone(&self) -> ListenerConfig
fn clone(&self) -> ListenerConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ListenerConfig
impl Debug for ListenerConfig
source§impl Default for ListenerConfig
impl Default for ListenerConfig
source§impl<'de> Deserialize<'de> for ListenerConfig
impl<'de> Deserialize<'de> for ListenerConfig
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 Ord for ListenerConfig
impl Ord for ListenerConfig
source§fn cmp(&self, other: &ListenerConfig) -> Ordering
fn cmp(&self, other: &ListenerConfig) -> Ordering
1.21.0 · 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 PartialEq<ListenerConfig> for ListenerConfig
impl PartialEq<ListenerConfig> for ListenerConfig
source§fn eq(&self, other: &ListenerConfig) -> bool
fn eq(&self, other: &ListenerConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<ListenerConfig> for ListenerConfig
impl PartialOrd<ListenerConfig> for ListenerConfig
source§fn partial_cmp(&self, other: &ListenerConfig) -> Option<Ordering>
fn partial_cmp(&self, other: &ListenerConfig) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for ListenerConfig
impl StructuralEq for ListenerConfig
impl StructuralPartialEq for ListenerConfig
Auto Trait Implementations§
impl RefUnwindSafe for ListenerConfig
impl Send for ListenerConfig
impl Sync for ListenerConfig
impl Unpin for ListenerConfig
impl UnwindSafe for ListenerConfig
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