Struct caesar_core::relay::appstate::AppState
source · pub struct AppState {
pub rooms: HashMap<String, Room>,
pub transfers: Vec<TransferResponse>,
}Expand description
State of the application.
This structure holds the state of the application, which includes the rooms and the transfers.
Fields§
§rooms: HashMap<String, Room>Map of rooms, where the key is the room’s ID and the value is the room itself.
transfers: Vec<TransferResponse>Vector of transfers.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppState
impl !RefUnwindSafe for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl !UnwindSafe for AppState
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