pub struct GroupContext { /* private fields */ }Expand description
Shared context for all property handles on a group
Analogous to SpeakerContext but scoped to a group. Operations are
executed against the group’s coordinator speaker.
Implementations§
Source§impl GroupContext
impl GroupContext
Sourcepub fn new(
group_id: GroupId,
coordinator_id: SpeakerId,
coordinator_ip: IpAddr,
state_manager: Arc<StateManager>,
api_client: SonosClient,
) -> Arc<Self>
pub fn new( group_id: GroupId, coordinator_id: SpeakerId, coordinator_ip: IpAddr, state_manager: Arc<StateManager>, api_client: SonosClient, ) -> Arc<Self>
Create a new GroupContext
Trait Implementations§
Source§impl Clone for GroupContext
impl Clone for GroupContext
Source§fn clone(&self) -> GroupContext
fn clone(&self) -> GroupContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GroupContext
impl !RefUnwindSafe for GroupContext
impl Send for GroupContext
impl Sync for GroupContext
impl Unpin for GroupContext
impl UnsafeUnpin for GroupContext
impl !UnwindSafe for GroupContext
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