[−][src]Struct koibumi_node::ConfigBuilder
A builder for building a configuration set for a Koibumi Bitmessage node.
Implementations
impl Builder[src]
pub fn core(&mut self, core: CoreConfig) -> &mut Self[src]
Sets the core configuration set which the configuration set this builder builds contains. The default is the default of the core configuration set.
pub fn channel_buffer(&mut self, v: usize) -> &mut Self[src]
Sets the buffer size of channels
which created in this node.
The default is 0x10000.
pub fn server(&mut self, addr: Option<StdSocketAddr>) -> &mut Self[src]
Sets the Option of the socket address of the server
which listens incomming connections.
If this is None, no server will be launched.
The default is None.
pub fn socks(&mut self, addr: Option<StdSocketAddr>) -> &mut Self[src]
Sets the Option of the socket address of the SOCKS5 server
which is used by outgoing connections.
If this is None, connections are directly to Clearnet.
The default is None.
pub fn connect_to_onion(&mut self, b: bool) -> &mut Self[src]
Sets the flag whether this node connects to remote nodes
that have Onion addresses.
Only outgoing connections are affected.
The default is false.
pub fn connect_to_ip(&mut self, b: bool) -> &mut Self[src]
Sets the flag whether this node connects to remote nodes
that have IP addresses.
Only outgoing connections are affected.
The default is false.
pub fn connect_to_myself(&mut self, b: bool) -> &mut Self[src]
Sets the flag whether this node can connect to this node itself.
The default is false.
pub fn user_agent(&mut self, s: UserAgent) -> &mut Self[src]
Sets the user agent which is sent to the nodes
this node connected to.
The default is "/PyBitmessage:0.6.3.2/".
pub fn stream_numbers(&mut self, list: StreamNumbers) -> &mut Self[src]
Sets the set of stream numbers
that this node is interested in.
The default is [1].
pub fn max_outgoing_initiated(&mut self, n: usize) -> &mut Self[src]
Sets the maximum number of outgoing conections
this node initiates.
The default is 32.
pub fn max_outgoing_established(&mut self, n: usize) -> &mut Self[src]
Sets the maximum number of outgoing established connections
this node keeps.
The default is 8.
pub fn max_nodes(&mut self, n: usize) -> &mut Self[src]
Sets the maximum number of node addresses
this node memorizes.
The default is 20000.
pub fn build(&self) -> Config[src]
Returns the configuration set this builder represents.
Trait Implementations
impl Clone for Builder[src]
impl Debug for Builder[src]
impl Default for Builder[src]
impl Eq for Builder[src]
impl PartialEq<Builder> for Builder[src]
impl StructuralEq for Builder[src]
impl StructuralPartialEq for Builder[src]
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
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> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,