[][src]Struct nyx::Slot

pub struct Slot<T, F> { /* fields omitted */ }

Yields the bytes by calling the provided function.

Created by the slot function.

Methods

impl<T, F: FnMut(Bps)> Slot<T, F>[src]

pub fn interval(&self) -> Duration[src]

Gets the update interval.

pub fn set_interval(&mut self, interval: Duration)[src]

Sets the update interval.

By default the interval is one second.

pub fn get_ref(&self) -> &T[src]

Returns a reference to the inner T.

pub fn get_mut(&mut self) -> &mut T[src]

Returns a mutable reference to the inner T.

pub fn into_inner(self) -> T[src]

Returns the inner T.

Trait Implementations

impl<T: Clone, F: Clone> Clone for Slot<T, F>[src]

impl<T: Copy, F: Copy> Copy for Slot<T, F>[src]

impl<T: Debug, F> Debug for Slot<T, F>[src]

impl<T: DoubleEndedIterator, F: FnMut(Bps)> DoubleEndedIterator for Slot<T, F>[src]

impl<T: Eq, F: Eq> Eq for Slot<T, F>[src]

impl<T: ExactSizeIterator, F: FnMut(Bps)> ExactSizeIterator for Slot<T, F>[src]

impl<T: FusedIterator, F: FnMut(Bps)> FusedIterator for Slot<T, F>[src]

impl<T: Hash, F: Hash> Hash for Slot<T, F>[src]

impl<T: Iterator, F: FnMut(Bps)> Iterator for Slot<T, F>[src]

type Item = T::Item

The type of the elements being iterated over.

impl<T: Ord, F: Ord> Ord for Slot<T, F>[src]

impl<T: PartialEq, F: PartialEq> PartialEq<Slot<T, F>> for Slot<T, F>[src]

impl<T: PartialOrd, F: PartialOrd> PartialOrd<Slot<T, F>> for Slot<T, F>[src]

impl<T: Read, F: FnMut(Bps)> Read for Slot<T, F>[src]

impl<T, F> StructuralEq for Slot<T, F>[src]

impl<T, F> StructuralPartialEq for Slot<T, F>[src]

impl<T: Write, F: FnMut(Bps)> Write for Slot<T, F>[src]

Auto Trait Implementations

impl<T, F> RefUnwindSafe for Slot<T, F> where
    F: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, F> Send for Slot<T, F> where
    F: Send,
    T: Send

impl<T, F> Sync for Slot<T, F> where
    F: Sync,
    T: Sync

impl<T, F> Unpin for Slot<T, F> where
    F: Unpin,
    T: Unpin

impl<T, F> UnwindSafe for Slot<T, F> where
    F: UnwindSafe,
    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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.