[−][src]Struct quinn_proto::TimerTable
A table of data associated with each distinct kind of Timer
Methods
impl<T> TimerTable<T>
[src]
pub fn new(f: impl FnMut() -> T) -> Self
[src]
Create a table initialized with the value returned by f
for each timer
ⓘImportant traits for TimerTableIter<'a, T>pub fn iter(&self) -> TimerTableIter<T>
[src]
ⓘImportant traits for TimerTableIter<'a, T>
Iterate over the contained values
ⓘImportant traits for TimerTableIterMut<'a, T>pub fn iter_mut(&mut self) -> TimerTableIterMut<T>
[src]
ⓘImportant traits for TimerTableIterMut<'a, T>
Mutably iterate over the contained values
Trait Implementations
impl<T: Default> Default for TimerTable<T>
[src]
fn default() -> TimerTable<T>
[src]
impl<T: Clone> Clone for TimerTable<T>
[src]
fn clone(&self) -> TimerTable<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, T> IntoIterator for &'a TimerTable<T>
[src]
type Item = (Timer, &'a T)
The type of the elements being iterated over.
type IntoIter = TimerTableIter<'a, T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'a, T> IntoIterator for &'a mut TimerTable<T>
[src]
type Item = (Timer, &'a mut T)
The type of the elements being iterated over.
type IntoIter = TimerTableIterMut<'a, T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<T: Copy> Copy for TimerTable<T>
[src]
impl<T> Index<Timer> for TimerTable<T>
[src]
impl<T> IndexMut<Timer> for TimerTable<T>
[src]
impl<T: Debug> Debug for TimerTable<T>
[src]
Auto Trait Implementations
impl<T> Unpin for TimerTable<T> where
T: Unpin,
T: Unpin,
impl<T> Sync for TimerTable<T> where
T: Sync,
T: Sync,
impl<T> Send for TimerTable<T> where
T: Send,
T: Send,
impl<T> UnwindSafe for TimerTable<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for TimerTable<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,