Enum backroll::BackrollEvent [−][src]
pub enum BackrollEvent { Connected(BackrollPlayerHandle), Synchronizing { player: BackrollPlayerHandle, count: u8, total: u8, }, Synchronized(BackrollPlayerHandle), Running, Disconnected(BackrollPlayerHandle), TimeSync { frames_ahead: u8, }, ConnectionInterrupted { player: BackrollPlayerHandle, disconnect_timeout: Duration, }, ConnectionResumed(BackrollPlayerHandle), }
Variants
Connected(BackrollPlayerHandle)
A initial response packet from the remote player has been recieved.
A response from a remote player has been recieved during the initial synchronization handshake.
Show fields
Fields of Synchronizing
Synchronized(BackrollPlayerHandle)
The initial synchronization handshake has been completed. The connection is considered live now.
All remote peers are now synchronized, the session is can now start running.
Disconnected(BackrollPlayerHandle)
The connection with a remote player has been disconnected.
The local client is several frames ahead of all other peers. Might need to stall a few frames to allow others to catch up.
Show fields
Fields of TimeSync
frames_ahead: u8
The connection with a remote player has been temporarily interrupted.
Show fields
Fields of ConnectionInterrupted
player: BackrollPlayerHandle
disconnect_timeout: Duration
ConnectionResumed(BackrollPlayerHandle)
The connection with a remote player has been resumed after being interrupted.
Auto Trait Implementations
impl RefUnwindSafe for BackrollEvent
impl Send for BackrollEvent
impl Sync for BackrollEvent
impl Unpin for BackrollEvent
impl UnwindSafe for BackrollEvent
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,