Struct nakamoto_p2p::fsm::Limits
source · pub struct Limits {
pub max_outbound_peers: usize,
pub max_inbound_peers: usize,
pub filter_cache_size: usize,
}
Expand description
Configured limits.
Fields
max_outbound_peers: usize
Target outbound peer connections.
max_inbound_peers: usize
Maximum inbound peer connections.
filter_cache_size: usize
Size in bytes of the compact filter cache.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnwindSafe for Limits
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more