[][src]Enum sensorlog::quota::StorageQuota

pub enum StorageQuota {
    Unlimited,
    Limited {
        limit_bytes: u64,
    },
    Zero,
}

Copyright © 2018 nyantec GmbH oss@nyantec.com Authors: Paul Asmuth asm@nyantec.com

Provided that these terms and disclaimer and all copyright notices are retained or reproduced in an accompanying document, permission is granted to deal in this work without restriction, including un‐ limited rights to use, publicly perform, distribute, sell, modify, merge, give away, or sublicence.

This work is provided “AS IS” and WITHOUT WARRANTY of any kind, to the utmost extent permitted by applicable law, neither express nor implied; without malicious intent or gross negligence. In no event may a licensor, author or contributor be held liable for indirect, direct, other damage, loss, or other issues arising in any way out of dealing in the work, even if advised of the possibility of such damage or existence of a defect, except proven that it results out of said person’s immediate fault when using the work as intended.

Variants

Unlimited
Limited

Fields of Limited

limit_bytes: u64
Zero

Implementations

impl StorageQuota[src]

pub fn parse_string(string: &str) -> Result<StorageQuota, Error>[src]

pub fn is_zero(&self) -> bool[src]

pub fn is_sufficient_bytes(&self, bytes: u64) -> bool[src]

Trait Implementations

impl Clone for StorageQuota[src]

impl Debug for StorageQuota[src]

impl<'de> Deserialize<'de> for StorageQuota[src]

impl Serialize for StorageQuota[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.