[][src]Struct rust_ipv8::configuration::Config

pub struct Config {
    pub queuesize: usize,
    pub buffersize: usize,
    pub pollinterval: Option<Duration>,
    pub threadcount: usize,
    pub default_hosts: Vec<Address>,
    pub sending_address: Address,
    pub receiving_address: Address,
}

This struct configures the IPv8 instance. It contains all the options you can change when using rust_ipv8 in your code.

Fields

queuesize: usize

the amount of space reserved for queueing up incoming messages (messages)

buffersize: usize

the size of the buffer reserved for incoming messages (bytes)

pollinterval: Option<Duration>

frequency at which polling times out and events are checked (ms) None is as fast as possible

threadcount: usize

the max number of threads to use in the network manager. 0 is #cores.

default_hosts: Vec<Address>

Default list of host used for peer discovery and bootstrapping

sending_address: Address

UDP Socket address used for sending packets

receiving_address: Address

UDP Socket address used for receiving packets

Trait Implementations

impl Default for Config[src]

Auto Trait Implementations

impl Unpin for Config

impl Sync for Config

impl Send for Config

impl RefUnwindSafe for Config

impl UnwindSafe for Config

Blanket Implementations

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

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

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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