pub struct State {
pub server: OnceCell<RwLock<ServerDetails>>,
pub groups: DashMap<String, StateGroup>,
pub clients: DashMap<String, Client>,
pub streams: DashMap<String, Option<Stream>>,
}
Expand description
The state of the Snapcast server, automatically kept up to date by the client
Fields§
§server: OnceCell<RwLock<ServerDetails>>
host and snapserver information
groups: DashMap<String, StateGroup>
group information keyed by group id
clients: DashMap<String, Client>
client information keyed by client id
streams: DashMap<String, Option<Stream>>
stream information keyed by stream id
None indicates that the stream was recently added and properties have not been fetched
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for State
impl !RefUnwindSafe for State
impl Send for State
impl !Sync for State
impl Unpin for State
impl UnwindSafe for State
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