pub struct BarrierTransportBridge { /* private fields */ }Expand description
Low-level bridge for sending runtime barrier notifications to clients.
Implementations§
Source§impl BarrierTransportBridge
impl BarrierTransportBridge
Sourcepub const fn stats(&self) -> BarrierTransportStats
pub const fn stats(&self) -> BarrierTransportStats
Returns accumulated statistics.
Sourcepub fn send_state<T>(
&mut self,
transport: &mut T,
client_id: ClientId,
barrier_id: BarrierId,
server_tick: Tick,
state: BarrierState,
) -> Result<usize, BarrierTransportError<T::Error>>where
T: TransportSink,
pub fn send_state<T>(
&mut self,
transport: &mut T,
client_id: ClientId,
barrier_id: BarrierId,
server_tick: Tick,
state: BarrierState,
) -> Result<usize, BarrierTransportError<T::Error>>where
T: TransportSink,
Sends one barrier notification to one client.
Sourcepub fn send_barrier<T>(
&mut self,
transport: &mut T,
client_id: ClientId,
barrier: RuntimeBarrier,
) -> Result<usize, BarrierTransportError<T::Error>>where
T: TransportSink,
pub fn send_barrier<T>(
&mut self,
transport: &mut T,
client_id: ClientId,
barrier: RuntimeBarrier,
) -> Result<usize, BarrierTransportError<T::Error>>where
T: TransportSink,
Sends one runtime barrier notification to one client.
Sourcepub fn broadcast_state<T, I>(
&mut self,
transport: &mut T,
clients: I,
barrier_id: BarrierId,
server_tick: Tick,
state: BarrierState,
) -> Result<BarrierTransportReport, BarrierTransportError<T::Error>>
pub fn broadcast_state<T, I>( &mut self, transport: &mut T, clients: I, barrier_id: BarrierId, server_tick: Tick, state: BarrierState, ) -> Result<BarrierTransportReport, BarrierTransportError<T::Error>>
Broadcasts one barrier state to a bounded caller-provided client list.
Sourcepub fn broadcast_barrier<T, I>(
&mut self,
transport: &mut T,
clients: I,
barrier: RuntimeBarrier,
) -> Result<BarrierTransportReport, BarrierTransportError<T::Error>>
pub fn broadcast_barrier<T, I>( &mut self, transport: &mut T, clients: I, barrier: RuntimeBarrier, ) -> Result<BarrierTransportReport, BarrierTransportError<T::Error>>
Broadcasts one runtime barrier to a bounded caller-provided client list.
Trait Implementations§
Source§impl Clone for BarrierTransportBridge
impl Clone for BarrierTransportBridge
Source§fn clone(&self) -> BarrierTransportBridge
fn clone(&self) -> BarrierTransportBridge
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BarrierTransportBridge
impl Debug for BarrierTransportBridge
Source§impl Default for BarrierTransportBridge
impl Default for BarrierTransportBridge
Source§fn default() -> BarrierTransportBridge
fn default() -> BarrierTransportBridge
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BarrierTransportBridge
impl RefUnwindSafe for BarrierTransportBridge
impl Send for BarrierTransportBridge
impl Sync for BarrierTransportBridge
impl Unpin for BarrierTransportBridge
impl UnsafeUnpin for BarrierTransportBridge
impl UnwindSafe for BarrierTransportBridge
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