Struct TicketController
pub struct TicketController { /* private fields */ }Expand description
A ticket controller a mod registered with
Registrar::register_ticket_controller: the
handle chunk.set_mod_forced and level.mod_forced_chunks take. Only the registrar makes
one, resolved once there, and it is Copy: keep it from register, for example in a
OnceLock. Another mod’s controller does not work.
Implementations§
§impl TicketController
impl TicketController
Trait Implementations§
§impl Clone for TicketController
impl Clone for TicketController
§fn clone(&self) -> TicketController
fn clone(&self) -> TicketController
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TicketController
§impl Debug for TicketController
impl Debug for TicketController
impl Eq for TicketController
§impl Hash for TicketController
impl Hash for TicketController
§impl PartialEq for TicketController
impl PartialEq for TicketController
impl StructuralPartialEq for TicketController
§impl Wire for TicketController
impl Wire for TicketController
Auto Trait Implementations§
impl Freeze for TicketController
impl RefUnwindSafe for TicketController
impl Send for TicketController
impl Sync for TicketController
impl Unpin for TicketController
impl UnsafeUnpin for TicketController
impl UnwindSafe for TicketController
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