pub struct ResonatorHandle {
pub id: ResonatorId,
/* private fields */
}Expand description
Handle to a registered Resonator
This handle provides access to Resonator operations while maintaining safety guarantees.
Fields§
§id: ResonatorIdImplementations§
Source§impl ResonatorHandle
impl ResonatorHandle
Sourcepub async fn signal_presence(
&self,
state: PresenceState,
) -> Result<(), PresenceError>
pub async fn signal_presence( &self, state: PresenceState, ) -> Result<(), PresenceError>
Signal presence
Sourcepub async fn enable_silent_mode(&self)
pub async fn enable_silent_mode(&self)
Enable silent mode
Sourcepub fn get_presence(&self) -> Option<PresenceState>
pub fn get_presence(&self) -> Option<PresenceState>
Get current presence state
Sourcepub async fn couple_with(
&self,
_target: ResonatorId,
params: CouplingParams,
) -> Result<CouplingHandle, CouplingError>
pub async fn couple_with( &self, _target: ResonatorId, params: CouplingParams, ) -> Result<CouplingHandle, CouplingError>
Establish coupling with another Resonator
Sourcepub async fn attention_status(&self) -> Option<AttentionBudget>
pub async fn attention_status(&self) -> Option<AttentionBudget>
Get attention budget status
Trait Implementations§
Source§impl Clone for ResonatorHandle
impl Clone for ResonatorHandle
Source§fn clone(&self) -> ResonatorHandle
fn clone(&self) -> ResonatorHandle
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 ResonatorHandle
impl !RefUnwindSafe for ResonatorHandle
impl Send for ResonatorHandle
impl Sync for ResonatorHandle
impl Unpin for ResonatorHandle
impl !UnwindSafe for ResonatorHandle
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