[−][src]Struct koibumi_node_sync::Config
A set of configurations for a Koibumi Bitmessage node.
Implementations
impl Config
[src]
pub fn builder() -> Builder
[src]
Constructs a builder for building a configuration set.
pub fn new() -> Self
[src]
Constructs a default configuration set.
pub fn core(&self) -> &CoreConfig
[src]
Returns the core configuration set which this configuration set contains. The default is the default of the core configuration set.
pub fn channel_buffer(&self) -> usize
[src]
Returns the buffer size of channels
which will be created in this node.
The default is 0x10000
.
pub fn server(&self) -> &Option<StdSocketAddr>
[src]
Returns 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(&self) -> &Option<StdSocketAddr>
[src]
Returns 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 socks_auth(&self) -> &Option<SocksAuth>
[src]
Returns the Option
of the authentication method of the SOCKS5
which is used by outgoing connections.
The default is None
.
pub fn connect_to_onion(&self) -> bool
[src]
Returns 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(&self) -> bool
[src]
Returns the flag whether this node connects to remote nodes
that have IP addresses.
Only outgoing connections are affected.
The default is false
.
pub fn is_connectable_to(&self, addr: &SocketAddrNode) -> bool
[src]
Returns whether this node can connect to the node specified by the socket address. It is affected by the type of the address which is Onion or IP.
pub fn connect_to_myself(&self) -> bool
[src]
Returns the flag whether this node can connect to this node itself.
The default is false
.
pub fn user_agent(&self) -> &UserAgent
[src]
Returns 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(&self) -> &StreamNumbers
[src]
Returns the set of stream numbers
that this node is interested in.
The default is [1]
.
pub fn seeds(&self) -> &[SocketAddrExt]
[src]
Returns the list of socket addresses of the seed nodes.
The default is []
.
pub fn bootstraps(&self) -> &[SocketAddrNode]
[src]
Returns the list of socket addresses of the bootstrap domain names.
The default is []
.
pub fn max_incoming_connected(&self) -> usize
[src]
Returns the maximum number of incoming connections
this node accepts.
The default is 160
.
pub fn max_incoming_established(&self) -> usize
[src]
Returns the maximum number of incoming established connections
this node accepts.
The default is 128
.
pub fn max_outgoing_initiated(&self) -> usize
[src]
Returns the maximum number of outgoing conections
this node initiates.
The default is 32
.
pub fn max_outgoing_established(&self) -> usize
[src]
Returns the maximum number of outgoing established connections
this node keeps.
The default is 8
.
pub fn max_nodes(&self) -> usize
[src]
Returns the maximum number of node addresses
this node memorizes.
The default is 20000
.
pub fn own_nodes(&self) -> &[SocketAddrExt]
[src]
Returns the list of the socket addresses of the own node.
The default is []
.
Trait Implementations
impl Clone for Config
[src]
impl Debug for Config
[src]
impl Default for Config
[src]
impl<'de> Deserialize<'de> for Config
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Config
[src]
impl PartialEq<Config> for Config
[src]
impl Serialize for Config
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for Config
[src]
impl StructuralPartialEq for Config
[src]
Auto Trait Implementations
impl RefUnwindSafe for Config
[src]
impl Send for Config
[src]
impl Sync for Config
[src]
impl Unpin for Config
[src]
impl UnwindSafe for Config
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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.
pub 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>,