pub struct Limits {
pub allow_local_network: bool,
pub utp: bool,
pub torrents: usize,
pub pending_handshakes: usize,
pub pending_handshakes_per_ip: usize,
pub peers: usize,
pub pending_dials: usize,
pub payload_bytes: usize,
pub handshake_timeout: Duration,
}Fields§
§allow_local_network: boolPermit LAN and loopback endpoints for peers and discovery sources.
utp: bool§torrents: usize§pending_handshakes: usize§pending_handshakes_per_ip: usizePending (not established) inbound connections per canonical source IP.
peers: usizeSession-wide cap on the sum of admitted per-torrent peer reservations.
pending_dials: usize§payload_bytes: usizeSum of admitted cache and writer-queue ceilings, not total process RSS.
handshake_timeout: DurationTrait Implementations§
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more