You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using this in a network monitor context, and it's very nice to have automatic formatting into *bytes/sec - which is commonly used in things like download speeds in browsers, etc.
However, it's also very common to measure internet bandwidth in bits, i.e., a "100 megabit connection" or "100 Mbps".
I think it would be really neat if this crate could support a Bit type too, so it could format in bits as well as bytes.
The text was updated successfully, but these errors were encountered:
Hi, @acheronfail . Thanks for reporting. ByteSize uses u64 to count bytes and convert from/into u64 with bytes. Using bits as the minimal unit would break the APIs.
To support bits counting, I think we need another set of APIs. 🤔
I'm using this in a network monitor context, and it's very nice to have automatic formatting into *bytes/sec - which is commonly used in things like download speeds in browsers, etc.
However, it's also very common to measure internet bandwidth in bits, i.e., a "100 megabit connection" or "100 Mbps".
I think it would be really neat if this crate could support a
Bit
type too, so it could format in bits as well as bytes.The text was updated successfully, but these errors were encountered: