pub struct GroupChangeResult {
pub succeeded: Vec<SpeakerId>,
pub failed: Vec<(SpeakerId, SdkError)>,
}Expand description
Result of a multi-speaker group operation (e.g., dissolve(), create_group())
Instead of short-circuiting on the first failure, multi-speaker operations attempt every speaker and report per-speaker results. This gives callers full visibility into partial failures.
Fields§
§succeeded: Vec<SpeakerId>Speakers that were successfully changed
failed: Vec<(SpeakerId, SdkError)>Speakers that failed, with error descriptions
Implementations§
Source§impl GroupChangeResult
impl GroupChangeResult
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Returns true if all speakers were changed successfully
Sourcepub fn is_partial(&self) -> bool
pub fn is_partial(&self) -> bool
Returns true if some speakers succeeded and some failed
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GroupChangeResult
impl RefUnwindSafe for GroupChangeResult
impl Send for GroupChangeResult
impl Sync for GroupChangeResult
impl Unpin for GroupChangeResult
impl UnsafeUnpin for GroupChangeResult
impl UnwindSafe for GroupChangeResult
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