pub enum MemoryUnit {
Bytes,
Kibibytes,
Mebibytes,
Gibibytes,
Tebibytes,
}Expand description
Memory units recognised in PostgreSQL parameter values. https://www.postgresql.org/docs/16/config-setting.html#CONFIG-SETTING-NAMES-VALUES
Variants§
Trait Implementations§
Source§impl Clone for MemoryUnit
impl Clone for MemoryUnit
impl Copy for MemoryUnit
Source§impl Debug for MemoryUnit
impl Debug for MemoryUnit
Source§impl Display for MemoryUnit
impl Display for MemoryUnit
Source§impl FromStr for MemoryUnit
impl FromStr for MemoryUnit
Source§impl PartialEq for MemoryUnit
impl PartialEq for MemoryUnit
impl StructuralPartialEq for MemoryUnit
Auto Trait Implementations§
impl Forget for MemoryUnit
impl Freeze for MemoryUnit
impl Move for MemoryUnit
impl RefUnwindSafe for MemoryUnit
impl Send for MemoryUnit
impl Sync for MemoryUnit
impl Unpin for MemoryUnit
impl UnsafeUnpin for MemoryUnit
impl UnwindSafe for MemoryUnit
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more