pub enum Input<'a> {
Timeout(Instant),
Receive(Instant, Receive<'a>),
}Expand description
Input as expected by Rtc::handle_input(). Either network data or a timeout.
Variants§
Timeout(Instant)
A timeout without any network input.
Receive(Instant, Receive<'a>)
Network input. The Instant is the time the packet was received from the socket -
not necessarily “now” (e.g. when UDP demultiplexing runs on a separate thread). It
drives time forward when more recent than the last “now” the instance has seen.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Input<'a>
impl<'a> Freeze for Input<'a>
impl<'a> Move for Input<'a>
impl<'a> RefUnwindSafe for Input<'a>
impl<'a> Send for Input<'a>
impl<'a> Sync for Input<'a>
impl<'a> Unpin for Input<'a>
impl<'a> UnsafeUnpin for Input<'a>
impl<'a> UnwindSafe for Input<'a>
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