Struct flattiverse_connector::UniverseGroup
source · pub struct UniverseGroup { /* private fields */ }
Implementations
sourceimpl UniverseGroup
impl UniverseGroup
pub fn from_reader(
connector: &Arc<Connector>,
packet: &Packet
) -> Result<UniverseGroup, Error>
pub fn tournament(&self) -> Option<Arc<Tournament>>
sourcepub fn avatar_raw(&self) -> Result<Vec<u8>, Error>
pub fn avatar_raw(&self) -> Result<Vec<u8>, Error>
The avatar of this UniverseGroup as jpeg/raw (bitmap)
pub fn new_flow_control(&self) -> Result<Arc<UniverseGroupFlowControl>, Error>
sourcepub fn register_ship(&self, class: &str, name: &str) -> Result<Arc<Ship>, Error>
pub fn register_ship(&self, class: &str, name: &str) -> Result<Arc<Ship>, Error>
The returned value is supposed to be a Ship
pub fn part(&self) -> Result<(), Error>
pub fn chat(&self, message: &str) -> Result<(), Error>
pub fn join(
&self,
name: &str,
team: u8,
clan: Option<&str>,
password: Option<&str>
) -> Result<(), Error>
pub fn id(&self) -> u16
pub fn universe(&self, index: u8) -> Weak<Universe>
pub fn connector(&self) -> &Weak<Connector>
pub fn game_type(&self) -> Option<GameType>
pub fn teams(&self) -> RwLockReadGuard<'_, UniversalHolder<Team>>
pub fn team(&self, index: u8) -> Result<Arc<Team>, Error>
pub fn team_weak(&self, index: u8) -> Weak<Team>
pub fn avg_tick_time(&self) -> &TimeSpan
pub fn players(&self) -> RwLockReadGuard<'_, ManagedArray<Arc<Player>>>
pub fn universes(&self) -> RwLockReadGuard<'_, UniversalHolder<Universe>>
pub fn maximum_ship_level(&self) -> u8
pub fn max_players(&self) -> u16
pub fn performance_requirement(&self) -> PerformanceRequirement
Trait Implementations
sourceimpl PartialEq<UniverseGroup> for UniverseGroup
impl PartialEq<UniverseGroup> for UniverseGroup
sourcefn eq(&self, other: &UniverseGroup) -> bool
fn eq(&self, other: &UniverseGroup) -> bool
sourceimpl UniversalEnumerable for UniverseGroup
impl UniversalEnumerable for UniverseGroup
Auto Trait Implementations
impl !RefUnwindSafe for UniverseGroup
impl Send for UniverseGroup
impl Sync for UniverseGroup
impl Unpin for UniverseGroup
impl !UnwindSafe for UniverseGroup
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more