[−][src]Struct rust_ipv8::configuration::Config
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
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,