pub struct RemoveOnDisconnectBundle {
pub joined_client: JoinedClientBundle,
pub entity: EntityBundle,
pub world_holder: WorldHolder,
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,
pub has_client_loaded: HasClientLoaded,
pub ticks_alive: TicksConnected,
pub mining: Mining,
}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§world_holder: WorldHolder§player_metadata: PlayerMetadataBundle§in_loaded_chunk: InLoadedChunk§raw_connection: RawConnection§is_connection_alive: IsConnectionAliveThis makes it not send DisconnectEvent again.
chat_signing_session: ChatSigningSessionResend our chat signing certs next time.
is_authenticated: IsAuthenticatedThey’re not authenticated anymore if they disconnected.
has_client_loaded: HasClientLoaded§ticks_alive: TicksConnected§mining: MiningTrait Implementations§
Source§impl Bundle for RemoveOnDisconnectBundle
impl Bundle for RemoveOnDisconnectBundle
impl BundleFromComponents for RemoveOnDisconnectBundle
Source§impl DynamicBundle for RemoveOnDisconnectBundle
impl DynamicBundle for RemoveOnDisconnectBundle
Source§unsafe fn get_components(
ptr: MovingPtr<'_, RemoveOnDisconnectBundle>,
func: &mut impl FnMut(StorageType, OwningPtr<'_>),
)
unsafe fn get_components( ptr: MovingPtr<'_, RemoveOnDisconnectBundle>, func: &mut impl FnMut(StorageType, OwningPtr<'_>), )
Moves the components out of the bundle. Read more
Source§unsafe fn apply_effect(
ptr: MovingPtr<'_, MaybeUninit<RemoveOnDisconnectBundle>>,
func: &mut EntityWorldMut<'_>,
)
unsafe fn apply_effect( ptr: MovingPtr<'_, MaybeUninit<RemoveOnDisconnectBundle>>, func: &mut EntityWorldMut<'_>, )
Applies the after-effects of spawning this bundle. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for RemoveOnDisconnectBundle
impl !UnwindSafe for RemoveOnDisconnectBundle
impl Forget for RemoveOnDisconnectBundle
impl Freeze for RemoveOnDisconnectBundlewhere
*const Menu is !null: Freeze,
PhantomData<Menu>: Freeze,
*const FormattedText is !null: Freeze,
PhantomData<FormattedText>: Freeze,
*const IndexMap<DataComponentKind, Option<DataComponent>> is !null: Freeze,
PhantomData<IndexMap<DataComponentKind, Option<DataComponent>>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<(u16, ())>: Freeze,
PhantomData<(Uuid, PlayerInfo)>: Freeze,
PhantomData<(BlockPos, ServerVerifiedState)>: Freeze,
PhantomData<(BlockPos, BlockState)>: Freeze,
PhantomData<(Identifier, Vec<u8>)>: Freeze,
PhantomData<fn() -> NoHashHasher<MinecraftEntityId>>: Freeze,
PhantomData<(MinecraftEntityId, Entity)>: Freeze,
PhantomData<(Entity, MinecraftEntityId)>: Freeze,
NonZero<usize>: Freeze,
*const str is !null: Freeze,
PhantomData<str>: Freeze,
&'static str: Freeze,
PhantomData<(Identifier, AttributeModifier)>: Freeze,
PhantomData<(MobEffect, MobEffectData)>: Freeze,
*const ArcInner<RwLock<RawRwLock, PartialWorld>> is !null: Freeze,
PhantomData<ArcInner<RwLock<RawRwLock, PartialWorld>>>: Freeze,
*const ArcInner<RwLock<RawRwLock, World>> is !null: Freeze,
PhantomData<ArcInner<RwLock<RawRwLock, World>>>: Freeze,
*const [EntityParticle] is !null: Freeze,
PhantomData<[EntityParticle]>: Freeze,
*const ArcInner<TcpStream> is !null: Freeze,
PhantomData<ArcInner<TcpStream>>: Freeze,
PhantomData<u8>: Freeze,
[u8; 16]: Freeze,
*const () is !null: Freeze,
PhantomData<((), ())>: Freeze,
*const ArcInner<Chan<Box<[u8]>, Semaphore>> is !null: Freeze,
PhantomData<ArcInner<Chan<Box<[u8]>, Semaphore>>>: Freeze,
PhantomData<Box<[u8]>>: Freeze,
impl Move for RemoveOnDisconnectBundle
impl Send for RemoveOnDisconnectBundlewhere
BoxRaw<Menu>: Send,
BoxRaw<FormattedText>: Send,
BoxRaw<IndexMap<DataComponentKind, Option<DataComponent>>>: Send,
RawTable<(u16, ())>: Send,
RawTable<(Uuid, PlayerInfo)>: Send,
RawTable<(BlockPos, ServerVerifiedState)>: Send,
RawVecInner: Send,
RawTable<(Identifier, Vec<u8>)>: Send,
RawTable<(MinecraftEntityId, Entity)>: Send,
RawTable<(Entity, MinecraftEntityId)>: Send,
NonZero<usize>: Send,
BoxRaw<str>: Send,
&'static str: Send,
RawTable<(Identifier, AttributeModifier)>: Send,
RawTable<(MobEffect, MobEffectData)>: Send,
Arc<RwLock<RawRwLock, PartialWorld>>: Send,
Arc<RwLock<RawRwLock, World>>: Send,
BoxRaw<[EntityParticle]>: Send,
Arc<TcpStream>: Send,
Array<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>: Send,
Task<()>: Send,
Arc<Chan<Box<[u8]>, Semaphore>>: Send,
BoxRaw<[u8]>: Send,
impl Sync for RemoveOnDisconnectBundlewhere
BoxRaw<Menu>: Sync,
BoxRaw<FormattedText>: Sync,
BoxRaw<IndexMap<DataComponentKind, Option<DataComponent>>>: Sync,
RawTable<(u16, ())>: Sync,
RawTable<(Uuid, PlayerInfo)>: Sync,
RawTable<(BlockPos, ServerVerifiedState)>: Sync,
RawVecInner: Sync,
RawTable<(Identifier, Vec<u8>)>: Sync,
RawTable<(MinecraftEntityId, Entity)>: Sync,
RawTable<(Entity, MinecraftEntityId)>: Sync,
NonZero<usize>: Sync,
BoxRaw<str>: Sync,
RawTable<(Identifier, AttributeModifier)>: Sync,
RawTable<(MobEffect, MobEffectData)>: Sync,
Arc<RwLock<RawRwLock, PartialWorld>>: Sync,
Arc<RwLock<RawRwLock, World>>: Sync,
BoxRaw<[EntityParticle]>: Sync,
Arc<TcpStream>: Sync,
Array<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>: Sync,
Task<()>: Sync,
Arc<Chan<Box<[u8]>, Semaphore>>: Sync,
BoxRaw<[u8]>: Sync,
impl Unpin for RemoveOnDisconnectBundlewhere
Box<Menu>: Unpin,
Box<FormattedText>: Unpin,
Box<IndexMap<DataComponentKind, Option<DataComponent>>>: Unpin,
*const u8 is !null: Unpin,
Arc<GameProfileProperties>: Unpin,
NonZero<usize>: Unpin,
Box<str>: Unpin,
&'static str: Unpin,
NonZero<u32>: Unpin,
Arc<RwLock<RawRwLock, PartialWorld>>: Unpin,
Arc<RwLock<RawRwLock, World>>: Unpin,
Box<[EntityParticle]>: Unpin,
Arc<TcpStream>: Unpin,
[u8; 16]: Unpin,
Task<()>: Unpin,
Arc<Chan<Box<[u8]>, Semaphore>>: Unpin,
Box<[u8]>: Unpin,
impl UnsafeUnpin for RemoveOnDisconnectBundlewhere
*const Menu is !null: UnsafeUnpin,
PhantomData<Menu>: UnsafeUnpin,
*const FormattedText is !null: UnsafeUnpin,
PhantomData<FormattedText>: UnsafeUnpin,
*const IndexMap<DataComponentKind, Option<DataComponent>> is !null: UnsafeUnpin,
PhantomData<IndexMap<DataComponentKind, Option<DataComponent>>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(u16, ())>: UnsafeUnpin,
PhantomData<(Uuid, PlayerInfo)>: UnsafeUnpin,
PhantomData<(BlockPos, ServerVerifiedState)>: UnsafeUnpin,
PhantomData<(BlockPos, BlockState)>: UnsafeUnpin,
PhantomData<(Identifier, Vec<u8>)>: UnsafeUnpin,
PhantomData<fn() -> NoHashHasher<MinecraftEntityId>>: UnsafeUnpin,
PhantomData<(MinecraftEntityId, Entity)>: UnsafeUnpin,
PhantomData<(Entity, MinecraftEntityId)>: UnsafeUnpin,
NonZeroUsizeInner: UnsafeUnpin,
*const str is !null: UnsafeUnpin,
PhantomData<str>: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<(Identifier, AttributeModifier)>: UnsafeUnpin,
PhantomData<(MobEffect, MobEffectData)>: UnsafeUnpin,
*const ArcInner<RwLock<RawRwLock, PartialWorld>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<RawRwLock, PartialWorld>>>: UnsafeUnpin,
*const ArcInner<RwLock<RawRwLock, World>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<RawRwLock, World>>>: UnsafeUnpin,
*const [EntityParticle] is !null: UnsafeUnpin,
PhantomData<[EntityParticle]>: UnsafeUnpin,
*const ArcInner<TcpStream> is !null: UnsafeUnpin,
PhantomData<ArcInner<TcpStream>>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
[u8; 16]: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<((), ())>: UnsafeUnpin,
*const ArcInner<Chan<Box<[u8]>, Semaphore>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Chan<Box<[u8]>, Semaphore>>>: UnsafeUnpin,
PhantomData<Box<[u8]>>: UnsafeUnpin,
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
impl<T> ConditionalSend for Twhere
T: Send,
§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.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<A, B> Interchangeable<A> for B
impl<A, B> Interchangeable<A> for B
fn interchangeable_into(self) -> A
fn interchangeable_from(other: A) -> B
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.