pub struct WorldEntry {
pub world: WorldId,
pub name: &'static str,
}Available on crate feature
mcp and non-WebAssembly only.Expand description
One world a host reports, with the name it was spawned under.
list_worlds answers with these: the id is what every other tool names
the world by, and the name is what tells a person which world it is. The
host supplies both, because only the host knows the worlds it carries.
Fields§
§world: WorldIdThe id every other tool names this world by.
name: &'static strThe name the world was spawned under.
Trait Implementations§
Source§impl Clone for WorldEntry
impl Clone for WorldEntry
impl Copy for WorldEntry
Source§impl Debug for WorldEntry
impl Debug for WorldEntry
impl Eq for WorldEntry
Source§impl<'ʄ> Facet<'ʄ> for WorldEntry
impl<'ʄ> Facet<'ʄ> for WorldEntry
Source§impl PartialEq for WorldEntry
impl PartialEq for WorldEntry
impl StructuralPartialEq for WorldEntry
Auto Trait Implementations§
impl Forget for WorldEntry
impl Freeze for WorldEntry
impl RefUnwindSafe for WorldEntry
impl Send for WorldEntry
impl Sync for WorldEntry
impl Unpin for WorldEntry
impl UnsafeUnpin for WorldEntry
impl UnwindSafe for WorldEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Component for Twhere
T: 'static,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.