[][src]Struct casper_node::EventStreamServerConfig

pub struct EventStreamServerConfig {
    pub address: String,
    pub event_stream_buffer_length: u32,
    pub broadcast_channel_size: usize,
}

SSE HTTP server configuration.

Fields

address: String

Address to bind event stream SSE HTTP server to.

event_stream_buffer_length: u32

Number of SSEs to buffer.

broadcast_channel_size: usize

The number of events to buffer in the tokio broadcast channel to help slower clients to try to avoid missing events. See https://docs.rs/tokio/0.2.22/tokio/sync/broadcast/index.html#lagging for further details.

Implementations

impl Config[src]

pub fn new() -> Self[src]

Creates a default instance for EventStreamServer.

Trait Implementations

impl Clone for Config[src]

impl DataSize for Config[src]

impl Debug for Config[src]

impl Default for Config[src]

impl<'de> Deserialize<'de> for Config[src]

impl Serialize for Config[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]