pub enum Byte {
Bytes(u64),
Kilobytes(u64),
Megabytes(u64),
Gigabytes(u64),
Terabytes(u64),
Petabytes(u64),
}Expand description
Whenever the byte size of data needs to be specified, e.g. when setting a
buffer size parameter, the value must specify the unit,
like 10kb for 10 kilobytes.
Note that these units use powers of 1024, so 1kb means 1024 bytes.
https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#byte-units
Variants
Bytes(u64)
Kilobytes(u64)
Megabytes(u64)
Gigabytes(u64)
Terabytes(u64)
Petabytes(u64)
Trait Implementations
impl Copy for Byte
impl Eq for Byte
impl StructuralEq for Byte
impl StructuralPartialEq for Byte
Auto Trait Implementations
impl RefUnwindSafe for Byte
impl Send for Byte
impl Sync for Byte
impl Unpin for Byte
impl UnwindSafe for Byte
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