pub struct Profile {
pub peers: usize,
pub cache_bytes: usize,
pub write_queue_bytes: usize,
}Fields§
§peers: usizePer-torrent connection cap, including connecting and not-yet-joined peers.
cache_bytes: usize§write_queue_bytes: usizeImplementations§
Source§impl Profile
impl Profile
pub fn parse<'a>(&self, bytes: &'a [u8]) -> Result<Metainfo<'a>, AdmissionError>
pub fn parse_owned(&self, bytes: &[u8]) -> Result<OwnedMetainfo, AdmissionError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
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