pub struct NetworkEditor {Show 16 fields
pub topology_graph: NetworkTopologyGraph,
pub session: NetworkSession,
pub actors: Vec<ReplicatedActor>,
pub bandwidth_monitor: BandwidthMonitor,
pub lag_sim: LagSimulation,
pub active_panel: NetworkEditorPanel,
pub selected_node: Option<u64>,
pub selected_actor: Option<usize>,
pub diagnostic_events: Vec<NetworkDiagnosticEvent>,
pub simulation_time_ms: f64,
pub network_paused: bool,
pub zoom: f32,
pub pan: Vec2,
pub search_query: String,
pub show_bandwidth_overlay: bool,
pub show_player_list: bool,
}Fields§
§topology_graph: NetworkTopologyGraph§session: NetworkSession§actors: Vec<ReplicatedActor>§bandwidth_monitor: BandwidthMonitor§lag_sim: LagSimulation§active_panel: NetworkEditorPanel§selected_node: Option<u64>§selected_actor: Option<usize>§diagnostic_events: Vec<NetworkDiagnosticEvent>§simulation_time_ms: f64§network_paused: bool§zoom: f32§pan: Vec2§search_query: String§show_bandwidth_overlay: bool§show_player_list: boolImplementations§
Source§impl NetworkEditor
impl NetworkEditor
pub fn simulate_tick(&mut self, dt_ms: f64)
pub fn apply_lag_profile(&mut self, profile: LagProfile)
pub fn total_replicated_bandwidth_bps(&self) -> f32
pub fn generate_network_report(&self) -> String
Trait Implementations§
Source§impl Debug for NetworkEditor
impl Debug for NetworkEditor
Auto Trait Implementations§
impl Freeze for NetworkEditor
impl RefUnwindSafe for NetworkEditor
impl Send for NetworkEditor
impl Sync for NetworkEditor
impl Unpin for NetworkEditor
impl UnsafeUnpin for NetworkEditor
impl UnwindSafe for NetworkEditor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.