[][src]Struct embedded_time::rate::KibibytesPerSecond

pub struct KibibytesPerSecond<T: TimeInt = u32>(pub T);

Bytes/s × 1,024

Implementations

impl<T: TimeInt> KibibytesPerSecond<T>[src]

pub fn new(value: T) -> Self[src]

Trait Implementations

impl<T: TimeInt, Rhs: Rate> Add<Rhs> for KibibytesPerSecond<T> where
    Rhs: FixedPoint,
    Self: TryFrom<Rhs>, 
[src]

type Output = Self

The resulting type after applying the + operator.

fn add(self, rhs: Rhs) -> Self::Output[src]

See Add/Sub

impl<T: Clone + TimeInt> Clone for KibibytesPerSecond<T>[src]

impl<T: Copy + TimeInt> Copy for KibibytesPerSecond<T>[src]

impl<T: Debug + TimeInt> Debug for KibibytesPerSecond<T>[src]

impl<T: Default + TimeInt> Default for KibibytesPerSecond<T>[src]

impl<T: TimeInt> Display for KibibytesPerSecond<T>[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

impl<T: TimeInt> Div<T> for KibibytesPerSecond<T>[src]

type Output = Self

The resulting type after applying the / operator.

fn div(self, rhs: T) -> Self::Output[src]

See Mul/Div

impl<T: Eq + TimeInt> Eq for KibibytesPerSecond<T>[src]

impl<T: TimeInt> FixedPoint for KibibytesPerSecond<T>[src]

type T = T

The integer (magnitude) type

fn new(value: Self::T) -> Self[src]

fn integer(&self) -> &Self::T[src]

impl<T: TimeInt> From<BitsPerSecond<T>> for KibibytesPerSecond<T>[src]

impl From<BitsPerSecond<u32>> for KibibytesPerSecond<u64>[src]

impl<T: TimeInt> From<BytesPerSecond<T>> for KibibytesPerSecond<T>[src]

impl From<BytesPerSecond<u32>> for KibibytesPerSecond<u64>[src]

impl<T: TimeInt> From<KibibitsPerSecond<T>> for KibibytesPerSecond<T>[src]

impl From<KibibitsPerSecond<u32>> for KibibytesPerSecond<u64>[src]

impl<T: TimeInt> From<KibibytesPerSecond<T>> for Generic<T>[src]

impl<T: TimeInt> From<KibibytesPerSecond<T>> for MebibytesPerSecond<T>[src]

impl<T: TimeInt> From<KibibytesPerSecond<T>> for MebibitsPerSecond<T>[src]

impl From<KibibytesPerSecond<u32>> for MebibytesPerSecond<u64>[src]

impl From<KibibytesPerSecond<u32>> for MebibitsPerSecond<u64>[src]

impl From<KibibytesPerSecond<u32>> for KibibytesPerSecond<u64>[src]

impl From<KibibytesPerSecond<u32>> for KibibitsPerSecond<u64>[src]

impl From<KibibytesPerSecond<u32>> for BytesPerSecond<u64>[src]

impl From<KibibytesPerSecond<u32>> for BitsPerSecond<u64>[src]

impl From<MebibitsPerSecond<u32>> for KibibytesPerSecond<u64>[src]

impl From<MebibytesPerSecond<u32>> for KibibytesPerSecond<u64>[src]

impl<T: Hash + TimeInt> Hash for KibibytesPerSecond<T>[src]

impl<T: TimeInt> Mul<T> for KibibytesPerSecond<T>[src]

type Output = Self

The resulting type after applying the * operator.

fn mul(self, rhs: T) -> Self::Output[src]

See Mul/Div

impl<T: Ord + TimeInt> Ord for KibibytesPerSecond<T>[src]

impl<T: TimeInt, RhsInt: TimeInt> PartialEq<BitsPerSecond<RhsInt>> for KibibytesPerSecond<T> where
    BitsPerSecond<RhsInt>: PartialEq<KibibytesPerSecond<T>>, 
[src]

fn eq(&self, rhs: &BitsPerSecond<RhsInt>) -> bool[src]

impl<T: TimeInt, RhsInt: TimeInt> PartialEq<BytesPerSecond<RhsInt>> for KibibytesPerSecond<T> where
    BytesPerSecond<RhsInt>: PartialEq<KibibytesPerSecond<T>>, 
[src]

fn eq(&self, rhs: &BytesPerSecond<RhsInt>) -> bool[src]

impl<T: TimeInt, RhsInt: TimeInt> PartialEq<KibibitsPerSecond<RhsInt>> for KibibytesPerSecond<T> where
    KibibitsPerSecond<RhsInt>: PartialEq<KibibytesPerSecond<T>>, 
[src]

fn eq(&self, rhs: &KibibitsPerSecond<RhsInt>) -> bool[src]

impl<T: TimeInt, RhsInt: TimeInt> PartialEq<KibibytesPerSecond<RhsInt>> for MebibytesPerSecond<T> where
    KibibytesPerSecond<RhsInt>: PartialEq<MebibytesPerSecond<T>>, 
[src]

fn eq(&self, rhs: &KibibytesPerSecond<RhsInt>) -> bool[src]

impl<T: TimeInt, RhsInt: TimeInt> PartialEq<KibibytesPerSecond<RhsInt>> for MebibitsPerSecond<T> where
    KibibytesPerSecond<RhsInt>: PartialEq<MebibitsPerSecond<T>>, 
[src]

fn eq(&self, rhs: &KibibytesPerSecond<RhsInt>) -> bool[src]

impl<T: TimeInt, RhsInt: TimeInt> PartialEq<KibibytesPerSecond<RhsInt>> for KibibytesPerSecond<T> where
    T: TryFrom<RhsInt>, 
[src]

fn eq(&self, rhs: &KibibytesPerSecond<RhsInt>) -> bool[src]

impl<T: TimeInt, RhsInt: TimeInt> PartialEq<KibibytesPerSecond<RhsInt>> for KibibitsPerSecond<T> where
    Self: TryFrom<KibibytesPerSecond<RhsInt>>, 
[src]

fn eq(&self, rhs: &KibibytesPerSecond<RhsInt>) -> bool[src]

impl<T: TimeInt, RhsInt: TimeInt> PartialEq<KibibytesPerSecond<RhsInt>> for BytesPerSecond<T> where
    Self: TryFrom<KibibytesPerSecond<RhsInt>>, 
[src]

fn eq(&self, rhs: &KibibytesPerSecond<RhsInt>) -> bool[src]

impl<T: TimeInt, RhsInt: TimeInt> PartialEq<KibibytesPerSecond<RhsInt>> for BitsPerSecond<T> where
    Self: TryFrom<KibibytesPerSecond<RhsInt>>, 
[src]

fn eq(&self, rhs: &KibibytesPerSecond<RhsInt>) -> bool[src]

impl<T: TimeInt, RhsInt: TimeInt> PartialEq<MebibitsPerSecond<RhsInt>> for KibibytesPerSecond<T> where
    Self: TryFrom<MebibitsPerSecond<RhsInt>>, 
[src]

fn eq(&self, rhs: &MebibitsPerSecond<RhsInt>) -> bool[src]

impl<T: TimeInt, RhsInt: TimeInt> PartialEq<MebibytesPerSecond<RhsInt>> for KibibytesPerSecond<T> where
    Self: TryFrom<MebibytesPerSecond<RhsInt>>, 
[src]

fn eq(&self, rhs: &MebibytesPerSecond<RhsInt>) -> bool[src]

impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<BitsPerSecond<RhsInt>> for KibibytesPerSecond<T> where
    BitsPerSecond<RhsInt>: TryFrom<Self> + Ord
[src]

fn partial_cmp(&self, rhs: &BitsPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<BytesPerSecond<RhsInt>> for KibibytesPerSecond<T> where
    BytesPerSecond<RhsInt>: TryFrom<Self> + Ord
[src]

fn partial_cmp(&self, rhs: &BytesPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<KibibitsPerSecond<RhsInt>> for KibibytesPerSecond<T> where
    KibibitsPerSecond<RhsInt>: TryFrom<Self> + Ord
[src]

fn partial_cmp(&self, rhs: &KibibitsPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<KibibytesPerSecond<RhsInt>> for MebibytesPerSecond<T> where
    KibibytesPerSecond<RhsInt>: TryFrom<Self> + Ord
[src]

fn partial_cmp(&self, rhs: &KibibytesPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<KibibytesPerSecond<RhsInt>> for MebibitsPerSecond<T> where
    KibibytesPerSecond<RhsInt>: TryFrom<Self> + Ord
[src]

fn partial_cmp(&self, rhs: &KibibytesPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<KibibytesPerSecond<RhsInt>> for KibibytesPerSecond<T> where
    T: TryFrom<RhsInt>, 
[src]

fn partial_cmp(&self, rhs: &KibibytesPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<KibibytesPerSecond<RhsInt>> for KibibitsPerSecond<T> where
    Self: TryFrom<KibibytesPerSecond<RhsInt>>, 
[src]

fn partial_cmp(&self, rhs: &KibibytesPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<KibibytesPerSecond<RhsInt>> for BytesPerSecond<T> where
    Self: TryFrom<KibibytesPerSecond<RhsInt>>, 
[src]

fn partial_cmp(&self, rhs: &KibibytesPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<KibibytesPerSecond<RhsInt>> for BitsPerSecond<T> where
    Self: TryFrom<KibibytesPerSecond<RhsInt>>, 
[src]

fn partial_cmp(&self, rhs: &KibibytesPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<MebibitsPerSecond<RhsInt>> for KibibytesPerSecond<T> where
    Self: TryFrom<MebibitsPerSecond<RhsInt>>, 
[src]

fn partial_cmp(&self, rhs: &MebibitsPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<MebibytesPerSecond<RhsInt>> for KibibytesPerSecond<T> where
    Self: TryFrom<MebibytesPerSecond<RhsInt>>, 
[src]

fn partial_cmp(&self, rhs: &MebibytesPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T: TimeInt> Rate for KibibytesPerSecond<T>[src]

impl<T: TimeInt, Rhs: Rate> Rem<Rhs> for KibibytesPerSecond<T> where
    Self: TryFrom<Rhs>,
    Rhs: FixedPoint
[src]

type Output = Self

The resulting type after applying the % operator.

fn rem(self, rhs: Rhs) -> Self::Output[src]

impl<T: TimeInt> StructuralEq for KibibytesPerSecond<T>[src]

impl<T: TimeInt, Rhs: Rate> Sub<Rhs> for KibibytesPerSecond<T> where
    Self: TryFrom<Rhs>,
    Rhs: FixedPoint
[src]

type Output = Self

The resulting type after applying the - operator.

fn sub(self, rhs: Rhs) -> Self::Output[src]

See Add/Sub

impl TryFrom<BitsPerSecond<u64>> for KibibytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(small: BitsPerSecond<u64>) -> Result<Self, Self::Error>[src]

impl TryFrom<BytesPerSecond<u64>> for KibibytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(small: BytesPerSecond<u64>) -> Result<Self, Self::Error>[src]

impl<SourceInt: TimeInt, DestInt: TimeInt> TryFrom<Generic<SourceInt>> for KibibytesPerSecond<DestInt> where
    DestInt: TryFrom<SourceInt>, 
[src]

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(generic_rate: Generic<SourceInt>) -> Result<Self, Self::Error>[src]

impl TryFrom<KibibitsPerSecond<u64>> for KibibytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(small: KibibitsPerSecond<u64>) -> Result<Self, Self::Error>[src]

impl<T: TimeInt> TryFrom<KibibytesPerSecond<T>> for KibibitsPerSecond<T>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(big: KibibytesPerSecond<T>) -> Result<Self, Self::Error>[src]

impl<T: TimeInt> TryFrom<KibibytesPerSecond<T>> for BytesPerSecond<T>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(big: KibibytesPerSecond<T>) -> Result<Self, Self::Error>[src]

impl<T: TimeInt> TryFrom<KibibytesPerSecond<T>> for BitsPerSecond<T>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(big: KibibytesPerSecond<T>) -> Result<Self, Self::Error>[src]

impl TryFrom<KibibytesPerSecond<u64>> for MebibytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(small: KibibytesPerSecond<u64>) -> Result<Self, Self::Error>[src]

impl TryFrom<KibibytesPerSecond<u64>> for MebibitsPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(small: KibibytesPerSecond<u64>) -> Result<Self, Self::Error>[src]

impl TryFrom<KibibytesPerSecond<u64>> for KibibytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(source: KibibytesPerSecond<u64>) -> Result<Self, Self::Error>[src]

impl TryFrom<KibibytesPerSecond<u64>> for KibibitsPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(big: KibibytesPerSecond<u64>) -> Result<Self, Self::Error>[src]

impl TryFrom<KibibytesPerSecond<u64>> for BytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(big: KibibytesPerSecond<u64>) -> Result<Self, Self::Error>[src]

impl TryFrom<KibibytesPerSecond<u64>> for BitsPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(big: KibibytesPerSecond<u64>) -> Result<Self, Self::Error>[src]

impl<T: TimeInt> TryFrom<MebibitsPerSecond<T>> for KibibytesPerSecond<T>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(big: MebibitsPerSecond<T>) -> Result<Self, Self::Error>[src]

impl TryFrom<MebibitsPerSecond<u64>> for KibibytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(big: MebibitsPerSecond<u64>) -> Result<Self, Self::Error>[src]

impl<T: TimeInt> TryFrom<MebibytesPerSecond<T>> for KibibytesPerSecond<T>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(big: MebibytesPerSecond<T>) -> Result<Self, Self::Error>[src]

impl TryFrom<MebibytesPerSecond<u64>> for KibibytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(big: MebibytesPerSecond<u64>) -> Result<Self, Self::Error>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for KibibytesPerSecond<T> where
    T: RefUnwindSafe

impl<T> Send for KibibytesPerSecond<T> where
    T: Send

impl<T> Sync for KibibytesPerSecond<T> where
    T: Sync

impl<T> Unpin for KibibytesPerSecond<T> where
    T: Unpin

impl<T> UnwindSafe for KibibytesPerSecond<T> where
    T: UnwindSafe

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> From<T> for T[src]

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

impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
    T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.