pub struct RemoveOnDisconnectBundle {
pub joined_client: JoinedClientBundle,
pub entity: EntityBundle,
pub instance_holder: InstanceHolder,
pub player_metadata: PlayerMetadataBundle,
pub in_loaded_chunk: InLoadedChunk,
pub raw_connection: RawConnection,
pub is_connection_alive: IsConnectionAlive,
pub chat_signing_session: ChatSigningSession,
pub is_authenticated: IsAuthenticated,
}
Expand description
A bundle of components that are removed when a client disconnects.
This shouldn’t be used for inserts because not all of the components should always be present.
Fields§
§joined_client: JoinedClientBundle
§entity: EntityBundle
§instance_holder: InstanceHolder
§player_metadata: PlayerMetadataBundle
§in_loaded_chunk: InLoadedChunk
§raw_connection: RawConnection
§is_connection_alive: IsConnectionAlive
This makes it not send DisconnectEvent
again.
chat_signing_session: ChatSigningSession
Resend our chat signing certs next time.
is_authenticated: IsAuthenticated
They’re not authenticated anymore if they disconnected.
Trait Implementations§
Source§impl Bundle for RemoveOnDisconnectBundle
impl Bundle for RemoveOnDisconnectBundle
Source§fn get_component_ids(
components: &Components,
ids: &mut impl FnMut(Option<ComponentId>),
)
fn get_component_ids( components: &Components, ids: &mut impl FnMut(Option<ComponentId>), )
Gets this [
Bundle
]’s component ids. This will be None
if the component has not been registered.Source§fn register_required_components(
components: &mut ComponentsRegistrator<'_>,
required_components: &mut RequiredComponents,
)
fn register_required_components( components: &mut ComponentsRegistrator<'_>, required_components: &mut RequiredComponents, )
Registers components that are required by the components in this [
Bundle
].Source§impl DynamicBundle for RemoveOnDisconnectBundle
impl DynamicBundle for RemoveOnDisconnectBundle
impl BundleFromComponents for RemoveOnDisconnectBundle
Auto Trait Implementations§
impl Freeze for RemoveOnDisconnectBundle
impl !RefUnwindSafe for RemoveOnDisconnectBundle
impl Send for RemoveOnDisconnectBundle
impl Sync for RemoveOnDisconnectBundle
impl Unpin for RemoveOnDisconnectBundle
impl !UnwindSafe for RemoveOnDisconnectBundle
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<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.