SonosDevice

Struct SonosDevice 

Source
pub struct SonosDevice { /* private fields */ }

Implementations§

Source§

impl SonosDevice

Source

pub async fn subscribe_av_transport( &self, ) -> Result<EventStream<AVTransportEvent>>

Subscribe to events from the AVTransport service on this device

Source§

impl SonosDevice

Source

pub async fn subscribe_alarm_clock( &self, ) -> Result<EventStream<AlarmClockEvent>>

Subscribe to events from the AlarmClock service on this device

Source§

impl SonosDevice

Source

pub async fn subscribe_audio_in(&self) -> Result<EventStream<AudioInEvent>>

Subscribe to events from the AudioIn service on this device

Source§

impl SonosDevice

Source

pub async fn subscribe_connection_manager( &self, ) -> Result<EventStream<ConnectionManagerEvent>>

Subscribe to events from the ConnectionManager service on this device

Source§

impl SonosDevice

Source

pub async fn subscribe_content_directory( &self, ) -> Result<EventStream<ContentDirectoryEvent>>

Subscribe to events from the ContentDirectory service on this device

Source§

impl SonosDevice

Source

pub async fn subscribe_device_properties( &self, ) -> Result<EventStream<DevicePropertiesEvent>>

Subscribe to events from the DeviceProperties service on this device

Source§

impl SonosDevice

Source

pub async fn subscribe_group_management( &self, ) -> Result<EventStream<GroupManagementEvent>>

Subscribe to events from the GroupManagement service on this device

Source§

impl SonosDevice

Source

pub async fn subscribe_group_rendering_control( &self, ) -> Result<EventStream<GroupRenderingControlEvent>>

Subscribe to events from the GroupRenderingControl service on this device

Source§

impl SonosDevice

Source

pub async fn subscribe_ht_control(&self) -> Result<EventStream<HTControlEvent>>

Subscribe to events from the HTControl service on this device

Source§

impl SonosDevice

Source

pub async fn subscribe_music_services( &self, ) -> Result<EventStream<MusicServicesEvent>>

Subscribe to events from the MusicServices service on this device

Source§

impl SonosDevice

Source

pub async fn subscribe_queue(&self) -> Result<EventStream<QueueEvent>>

Subscribe to events from the Queue service on this device

Source§

impl SonosDevice

Source

pub async fn subscribe_rendering_control( &self, ) -> Result<EventStream<RenderingControlEvent>>

Subscribe to events from the RenderingControl service on this device

Source§

impl SonosDevice

Source

pub async fn subscribe_system_properties( &self, ) -> Result<EventStream<SystemPropertiesEvent>>

Subscribe to events from the SystemProperties service on this device

Source§

impl SonosDevice

Source

pub async fn subscribe_virtual_line_in( &self, ) -> Result<EventStream<VirtualLineInEvent>>

Subscribe to events from the VirtualLineIn service on this device

Source§

impl SonosDevice

Source

pub async fn subscribe_zone_group_topology( &self, ) -> Result<EventStream<ZoneGroupTopologyEvent>>

Subscribe to events from the ZoneGroupTopology service on this device

Source§

impl SonosDevice

Source

pub async fn from_ip(addr: Ipv4Addr) -> Result<Self>

Constructs a SonosDevice from the supplied IP Address. Validates that the device is actually a Sonos device before returning successfully.

Source

pub async fn for_room(room_name: &str) -> Result<Self>

Resolves the SonosDevice whose name is equal to the provided name. If no matching device is found within a reasonably short, unspecified, implementation-defined timeout, then an Error::RoomNotFound is produced.

Source

pub async fn from_url(url: Url) -> Result<Self>

Constructs a SonosDevice from the supplied URL, which must be the device_description.xml URL for that device. Validates that the device is actually a Sonos device before returning successfully.

Source

pub async fn name(&self) -> Result<String>

Returns the room/zone name of the device

Source

pub async fn get_zone_group_state(&self) -> Result<Vec<ZoneGroup>>

Returns information about the zone to which this device belongs

Source

pub async fn stop(&self) -> Result<()>

Stops playback

Source

pub async fn play(&self) -> Result<()>

Begin playback

Source

pub async fn pause(&self) -> Result<()>

pause playback

Source

pub async fn queue_clear(&self) -> Result<()>

Clears the queue

Source

pub async fn set_play_mode(&self, new_play_mode: CurrentPlayMode) -> Result<()>

Source

pub async fn set_av_transport_uri( &self, uri: &str, metadata: Option<TrackMetaData>, ) -> Result<()>

Source

pub async fn queue_prepend( &self, uri: &str, metadata: Option<TrackMetaData>, ) -> Result<AddUriToQueueResponse>

Source

pub async fn queue_append( &self, uri: &str, metadata: Option<TrackMetaData>, ) -> Result<AddUriToQueueResponse>

Source

pub async fn queue_browse( &self, starting_index: u32, requested_count: u32, ) -> Result<Vec<TrackMetaData>>

Source

pub fn url(&self) -> &Url

Source§

impl SonosDevice

Source

pub fn device_spec(&self) -> &DeviceSpec

Source

pub async fn subscribe_helper<T: DecodeXml + 'static>( &self, service: &str, ) -> Result<EventStream<T>>

Source

pub async fn action<REQ: ToXml, RESP>( &self, service: &str, action: &str, payload: REQ, ) -> Result<RESP>

This is a low level helper function for performing a SOAP Action request. You most likely want to use one of the methods implemented by the various service traits instead of this.

Trait Implementations§

Source§

impl AVTransport for SonosDevice

Source§

async fn add_multiple_uris_to_queue( &self, request: AddMultipleUrisToQueueRequest, ) -> Result<AddMultipleUrisToQueueResponse>

Source§

async fn add_uri_to_queue( &self, request: AddUriToQueueRequest, ) -> Result<AddUriToQueueResponse>

Adds songs to the SONOS queue
Source§

async fn add_uri_to_saved_queue( &self, request: AddUriToSavedQueueRequest, ) -> Result<AddUriToSavedQueueResponse>

Source§

async fn backup_queue(&self, request: BackupQueueRequest) -> Result<()>

Source§

async fn become_coordinator_of_standalone_group( &self, request: BecomeCoordinatorOfStandaloneGroupRequest, ) -> Result<BecomeCoordinatorOfStandaloneGroupResponse>

Leave the current group and revert to a single player.
Source§

async fn become_group_coordinator( &self, request: BecomeGroupCoordinatorRequest, ) -> Result<()>

Source§

async fn become_group_coordinator_and_source( &self, request: BecomeGroupCoordinatorAndSourceRequest, ) -> Result<()>

Source§

async fn change_coordinator( &self, request: ChangeCoordinatorRequest, ) -> Result<()>

Source§

async fn change_transport_settings( &self, request: ChangeTransportSettingsRequest, ) -> Result<()>

Source§

async fn configure_sleep_timer( &self, request: ConfigureSleepTimerRequest, ) -> Result<()>

Stop playing after set sleep timer or cancel
Source§

async fn create_saved_queue( &self, request: CreateSavedQueueRequest, ) -> Result<CreateSavedQueueResponse>

Source§

async fn delegate_group_coordination_to( &self, request: DelegateGroupCoordinationToRequest, ) -> Result<()>

Delegates the coordinator role to another player in the same group
Source§

async fn end_direct_control_session( &self, request: EndDirectControlSessionRequest, ) -> Result<()>

Source§

async fn get_crossfade_mode( &self, request: GetCrossfadeModeRequest, ) -> Result<GetCrossfadeModeResponse>

Get crossfade mode
Source§

async fn get_current_transport_actions( &self, request: GetCurrentTransportActionsRequest, ) -> Result<GetCurrentTransportActionsResponse>

Get current transport actions such as Set, Stop, Pause, Play, X_DLNA_SeekTime, Next, X_DLNA_SeekTrackNr
Source§

async fn get_device_capabilities( &self, request: GetDeviceCapabilitiesRequest, ) -> Result<GetDeviceCapabilitiesResponse>

Source§

async fn get_media_info( &self, request: GetMediaInfoRequest, ) -> Result<GetMediaInfoResponse>

Get information about the current playing media (queue)
Source§

async fn get_position_info( &self, request: GetPositionInfoRequest, ) -> Result<GetPositionInfoResponse>

Get information about current position (position in queue and time in current song)
Source§

async fn get_remaining_sleep_timer_duration( &self, request: GetRemainingSleepTimerDurationRequest, ) -> Result<GetRemainingSleepTimerDurationResponse>

Get time left on sleeptimer.
Source§

async fn get_running_alarm_properties( &self, request: GetRunningAlarmPropertiesRequest, ) -> Result<GetRunningAlarmPropertiesResponse>

Source§

async fn get_transport_info( &self, request: GetTransportInfoRequest, ) -> Result<GetTransportInfoResponse>

Get current transport status, speed and state such as PLAYING, STOPPED, PLAYING, PAUSED_PLAYBACK, TRANSITIONING, NO_MEDIA_PRESENT
Source§

async fn get_transport_settings( &self, request: GetTransportSettingsRequest, ) -> Result<GetTransportSettingsResponse>

Get transport settings
Source§

async fn next(&self, request: NextRequest) -> Result<()>

Go to next song
Source§

async fn notify_deleted_uri( &self, request: NotifyDeletedUriRequest, ) -> Result<()>

Source§

async fn pause(&self, request: PauseRequest) -> Result<()>

Pause playback
Source§

async fn play(&self, request: PlayRequest) -> Result<()>

Start playing the set TransportURI
Source§

async fn previous(&self, request: PreviousRequest) -> Result<()>

Go to previous song
Source§

async fn remove_all_tracks_from_queue( &self, request: RemoveAllTracksFromQueueRequest, ) -> Result<()>

Flushes the SONOS queue.
Source§

async fn remove_track_from_queue( &self, request: RemoveTrackFromQueueRequest, ) -> Result<()>

Source§

async fn remove_track_range_from_queue( &self, request: RemoveTrackRangeFromQueueRequest, ) -> Result<RemoveTrackRangeFromQueueResponse>

Removes the specified range of songs from the SONOS queue.
Source§

async fn reorder_tracks_in_queue( &self, request: ReorderTracksInQueueRequest, ) -> Result<()>

Source§

async fn reorder_tracks_in_saved_queue( &self, request: ReorderTracksInSavedQueueRequest, ) -> Result<ReorderTracksInSavedQueueResponse>

Source§

async fn run_alarm(&self, request: RunAlarmRequest) -> Result<()>

Source§

async fn save_queue( &self, request: SaveQueueRequest, ) -> Result<SaveQueueResponse>

Saves the current SONOS queue as a SONOS playlist and outputs objectID
Source§

async fn seek(&self, request: SeekRequest) -> Result<()>

Seek track in queue, time delta or absolute time in song
Source§

async fn set_av_transport_uri( &self, request: SetAvTransportUriRequest, ) -> Result<()>

Set the transport URI to a song, a stream, the queue, another player-rincon and a lot more
Source§

async fn set_crossfade_mode( &self, request: SetCrossfadeModeRequest, ) -> Result<()>

Set crossfade mode
Source§

async fn set_next_av_transport_uri( &self, request: SetNextAvTransportUriRequest, ) -> Result<()>

Source§

async fn set_play_mode(&self, request: SetPlayModeRequest) -> Result<()>

Set the PlayMode
Source§

async fn snooze_alarm(&self, request: SnoozeAlarmRequest) -> Result<()>

Snooze the current alarm for some time.
Source§

async fn start_autoplay(&self, request: StartAutoplayRequest) -> Result<()>

Source§

async fn stop(&self, request: StopRequest) -> Result<()>

Stop playback
Source§

impl AlarmClock for SonosDevice

Source§

async fn create_alarm( &self, request: CreateAlarmRequest, ) -> Result<CreateAlarmResponse>

Create a single alarm, all properties are required
Source§

async fn destroy_alarm(&self, request: DestroyAlarmRequest) -> Result<()>

Delete an alarm
Source§

async fn get_daily_index_refresh_time( &self, ) -> Result<GetDailyIndexRefreshTimeResponse>

Source§

async fn get_format(&self) -> Result<GetFormatResponse>

Source§

async fn get_household_time_at_stamp( &self, request: GetHouseholdTimeAtStampRequest, ) -> Result<GetHouseholdTimeAtStampResponse>

Source§

async fn get_time_now(&self) -> Result<GetTimeNowResponse>

Source§

async fn get_time_server(&self) -> Result<GetTimeServerResponse>

Source§

async fn get_time_zone(&self) -> Result<GetTimeZoneResponse>

Source§

async fn get_time_zone_and_rule(&self) -> Result<GetTimeZoneAndRuleResponse>

Source§

async fn get_time_zone_rule( &self, request: GetTimeZoneRuleRequest, ) -> Result<GetTimeZoneRuleResponse>

Source§

async fn list_alarms(&self) -> Result<ListAlarmsResponse>

Get the AlarmList as XML
Source§

async fn set_daily_index_refresh_time( &self, request: SetDailyIndexRefreshTimeRequest, ) -> Result<()>

Source§

async fn set_format(&self, request: SetFormatRequest) -> Result<()>

Source§

async fn set_time_now(&self, request: SetTimeNowRequest) -> Result<()>

Source§

async fn set_time_server(&self, request: SetTimeServerRequest) -> Result<()>

Source§

async fn set_time_zone(&self, request: SetTimeZoneRequest) -> Result<()>

Source§

async fn update_alarm(&self, request: UpdateAlarmRequest) -> Result<()>

Update an alarm, all parameters are required.
Source§

impl AudioIn for SonosDevice

Source§

impl Clone for SonosDevice

Source§

fn clone(&self) -> SonosDevice

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl ConnectionManager for SonosDevice

Source§

impl ContentDirectory for SonosDevice

Source§

async fn browse(&self, request: BrowseRequest) -> Result<BrowseResponse>

Browse for content: Music library (A), share(S:), Sonos playlists(SQ:), Sonos favorites(FV:2), radio stations(R:0/0), radio shows(R:0/1), queue(Q:)). Recommendation: Send one request, check the TotalMatches and - if necessary - do additional requests with higher StartingIndex. In case of duplicates only the first is returned! Example: albums with same title, even if artists are different
Source§

async fn create_object( &self, request: CreateObjectRequest, ) -> Result<CreateObjectResponse>

Source§

async fn destroy_object(&self, request: DestroyObjectRequest) -> Result<()>

Source§

async fn find_prefix( &self, request: FindPrefixRequest, ) -> Result<FindPrefixResponse>

Source§

async fn get_album_artist_display_option( &self, ) -> Result<GetAlbumArtistDisplayOptionResponse>

Get the current album art display option such as WMP, ITUNES or NONE
Source§

async fn get_all_prefix_locations( &self, request: GetAllPrefixLocationsRequest, ) -> Result<GetAllPrefixLocationsResponse>

Source§

async fn get_browseable(&self) -> Result<GetBrowseableResponse>

Source§

async fn get_last_index_change(&self) -> Result<GetLastIndexChangeResponse>

Source§

async fn get_search_capabilities(&self) -> Result<GetSearchCapabilitiesResponse>

Source§

async fn get_share_index_in_progress( &self, ) -> Result<GetShareIndexInProgressResponse>

Source§

async fn get_sort_capabilities(&self) -> Result<GetSortCapabilitiesResponse>

Source§

async fn get_system_update_id(&self) -> Result<GetSystemUpdateIdResponse>

Source§

async fn refresh_share_index( &self, request: RefreshShareIndexRequest, ) -> Result<()>

Updates the music library (share) index
Source§

async fn request_resort(&self, request: RequestResortRequest) -> Result<()>

Source§

async fn set_browseable(&self, request: SetBrowseableRequest) -> Result<()>

Source§

async fn update_object(&self, request: UpdateObjectRequest) -> Result<()>

Source§

impl Debug for SonosDevice

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl DeviceProperties for SonosDevice

Source§

async fn add_bonded_zones(&self, request: AddBondedZonesRequest) -> Result<()>

Source§

async fn add_ht_satellite(&self, request: AddHtSatelliteRequest) -> Result<()>

Adds satellites and/or a sub woofer to a (main) player. The satellites become hidden. The main player RINCON_* is mandatory. RR: right - rear, LF: left - front, SW: subwoofer
Source§

async fn create_stereo_pair( &self, request: CreateStereoPairRequest, ) -> Result<()>

Create a stereo pair (left, right speakers), right one becomes hidden
Source§

async fn enter_config_mode( &self, request: EnterConfigModeRequest, ) -> Result<EnterConfigModeResponse>

Source§

async fn exit_config_mode(&self, request: ExitConfigModeRequest) -> Result<()>

Source§

async fn get_autoplay_linked_zones( &self, request: GetAutoplayLinkedZonesRequest, ) -> Result<GetAutoplayLinkedZonesResponse>

Source§

async fn get_autoplay_room_uuid( &self, request: GetAutoplayRoomUuidRequest, ) -> Result<GetAutoplayRoomUuidResponse>

Source§

async fn get_autoplay_volume( &self, request: GetAutoplayVolumeRequest, ) -> Result<GetAutoplayVolumeResponse>

Source§

async fn get_button_lock_state(&self) -> Result<GetButtonLockStateResponse>

Get the current button lock state
Source§

async fn get_button_state(&self) -> Result<GetButtonStateResponse>

Source§

async fn get_ht_forward_state(&self) -> Result<GetHtForwardStateResponse>

Source§

async fn get_household_id(&self) -> Result<GetHouseholdIdResponse>

Source§

async fn get_led_state(&self) -> Result<GetLedStateResponse>

Get the current LED state
Source§

async fn get_use_autoplay_volume( &self, request: GetUseAutoplayVolumeRequest, ) -> Result<GetUseAutoplayVolumeResponse>

Source§

async fn get_zone_attributes(&self) -> Result<GetZoneAttributesResponse>

Source§

async fn get_zone_info(&self) -> Result<GetZoneInfoResponse>

Get information about this specific speaker
Source§

async fn remove_bonded_zones( &self, request: RemoveBondedZonesRequest, ) -> Result<()>

Source§

async fn remove_ht_satellite( &self, request: RemoveHtSatelliteRequest, ) -> Result<()>

Removes a satellite or a sub woofer from (main) player. The satellite becomes visible.
Source§

async fn room_detection_start_chirping( &self, request: RoomDetectionStartChirpingRequest, ) -> Result<RoomDetectionStartChirpingResponse>

Source§

async fn room_detection_stop_chirping( &self, request: RoomDetectionStopChirpingRequest, ) -> Result<()>

Source§

async fn separate_stereo_pair( &self, request: SeparateStereoPairRequest, ) -> Result<()>

Separate a stereo pair
Source§

async fn set_autoplay_linked_zones( &self, request: SetAutoplayLinkedZonesRequest, ) -> Result<()>

Source§

async fn set_autoplay_room_uuid( &self, request: SetAutoplayRoomUuidRequest, ) -> Result<()>

Source§

async fn set_autoplay_volume( &self, request: SetAutoplayVolumeRequest, ) -> Result<()>

Source§

async fn set_button_lock_state( &self, request: SetButtonLockStateRequest, ) -> Result<()>

Set the button lock state
Source§

async fn set_led_state(&self, request: SetLedStateRequest) -> Result<()>

Set the LED state
Source§

async fn set_use_autoplay_volume( &self, request: SetUseAutoplayVolumeRequest, ) -> Result<()>

Source§

async fn set_zone_attributes( &self, request: SetZoneAttributesRequest, ) -> Result<()>

Source§

impl GroupManagement for SonosDevice

Source§

impl GroupRenderingControl for SonosDevice

Source§

async fn get_group_mute( &self, request: GetGroupMuteRequest, ) -> Result<GetGroupMuteResponse>

Get the group mute state.
Source§

async fn get_group_volume( &self, request: GetGroupVolumeRequest, ) -> Result<GetGroupVolumeResponse>

Get the group volume.
Source§

async fn set_group_mute(&self, request: SetGroupMuteRequest) -> Result<()>

(Un-/)Mute the entire group
Source§

async fn set_group_volume(&self, request: SetGroupVolumeRequest) -> Result<()>

Change group volume. Players volume will be changed proportionally based on last snapshot
Source§

async fn set_relative_group_volume( &self, request: SetRelativeGroupVolumeRequest, ) -> Result<SetRelativeGroupVolumeResponse>

Relatively change group volume - returns final group volume. Players volume will be changed proportionally based on last snapshot
Source§

async fn snapshot_group_volume( &self, request: SnapshotGroupVolumeRequest, ) -> Result<()>

Creates a new group volume snapshot, the volume ratio between all players. It is used by SetGroupVolume and SetRelativeGroupVolume
Source§

impl HTControl for SonosDevice

Source§

impl MusicServices for SonosDevice

Source§

impl QPlay for SonosDevice

Source§

impl Queue for SonosDevice

Source§

impl RenderingControl for SonosDevice

Source§

async fn get_bass(&self, request: GetBassRequest) -> Result<GetBassResponse>

Get bass level between -10 and 10
Source§

async fn get_eq(&self, request: GetEqRequest) -> Result<GetEqResponse>

Get equalizer value
Source§

async fn get_headphone_connected( &self, request: GetHeadphoneConnectedRequest, ) -> Result<GetHeadphoneConnectedResponse>

Source§

async fn get_loudness( &self, request: GetLoudnessRequest, ) -> Result<GetLoudnessResponse>

Whether or not Loudness is on
Source§

async fn get_mute(&self, request: GetMuteRequest) -> Result<GetMuteResponse>

Source§

async fn get_output_fixed( &self, request: GetOutputFixedRequest, ) -> Result<GetOutputFixedResponse>

Source§

async fn get_room_calibration_status( &self, request: GetRoomCalibrationStatusRequest, ) -> Result<GetRoomCalibrationStatusResponse>

Source§

async fn get_supports_output_fixed( &self, request: GetSupportsOutputFixedRequest, ) -> Result<GetSupportsOutputFixedResponse>

Source§

async fn get_treble( &self, request: GetTrebleRequest, ) -> Result<GetTrebleResponse>

Get treble
Source§

async fn get_volume( &self, request: GetVolumeRequest, ) -> Result<GetVolumeResponse>

Get volume
Source§

async fn get_volume_db( &self, request: GetVolumeDbRequest, ) -> Result<GetVolumeDbResponse>

Source§

async fn get_volume_db_range( &self, request: GetVolumeDbRangeRequest, ) -> Result<GetVolumeDbRangeResponse>

Source§

async fn ramp_to_volume( &self, request: RampToVolumeRequest, ) -> Result<RampToVolumeResponse>

Source§

async fn reset_basic_eq( &self, request: ResetBasicEqRequest, ) -> Result<ResetBasicEqResponse>

Source§

async fn reset_ext_eq(&self, request: ResetExtEqRequest) -> Result<()>

Source§

async fn restore_volume_prior_to_ramp( &self, request: RestoreVolumePriorToRampRequest, ) -> Result<()>

Source§

async fn set_bass(&self, request: SetBassRequest) -> Result<()>

Set bass level, between -10 and 10
Source§

async fn set_channel_map(&self, request: SetChannelMapRequest) -> Result<()>

Source§

async fn set_eq(&self, request: SetEqRequest) -> Result<()>

Set equalizer value for different types
Source§

async fn set_loudness(&self, request: SetLoudnessRequest) -> Result<()>

Set loudness on / off
Source§

async fn set_mute(&self, request: SetMuteRequest) -> Result<()>

Source§

async fn set_output_fixed(&self, request: SetOutputFixedRequest) -> Result<()>

Source§

async fn set_relative_volume( &self, request: SetRelativeVolumeRequest, ) -> Result<SetRelativeVolumeResponse>

Source§

async fn set_room_calibration_status( &self, request: SetRoomCalibrationStatusRequest, ) -> Result<()>

Source§

async fn set_room_calibration_x( &self, request: SetRoomCalibrationXRequest, ) -> Result<()>

Source§

async fn set_treble(&self, request: SetTrebleRequest) -> Result<()>

Set treble level
Source§

async fn set_volume(&self, request: SetVolumeRequest) -> Result<()>

Source§

async fn set_volume_db(&self, request: SetVolumeDbRequest) -> Result<()>

Source§

impl SystemProperties for SonosDevice

Source§

async fn add_account_x( &self, request: AddAccountXRequest, ) -> Result<AddAccountXResponse>

Source§

async fn add_o_auth_account_x( &self, request: AddOAuthAccountXRequest, ) -> Result<AddOAuthAccountXResponse>

Source§

async fn do_post_update_tasks(&self) -> Result<()>

Source§

async fn edit_account_md(&self, request: EditAccountMdRequest) -> Result<()>

Source§

async fn edit_account_password_x( &self, request: EditAccountPasswordXRequest, ) -> Result<()>

Source§

async fn enable_rdm(&self, request: EnableRdmRequest) -> Result<()>

Source§

async fn get_rdm(&self) -> Result<GetRdmResponse>

Source§

async fn get_string( &self, request: GetStringRequest, ) -> Result<GetStringResponse>

Get a saved string.
Source§

async fn get_web_code( &self, request: GetWebCodeRequest, ) -> Result<GetWebCodeResponse>

Source§

async fn provision_credentialed_trial_account_x( &self, request: ProvisionCredentialedTrialAccountXRequest, ) -> Result<ProvisionCredentialedTrialAccountXResponse>

Source§

async fn refresh_account_credentials_x( &self, request: RefreshAccountCredentialsXRequest, ) -> Result<()>

Source§

async fn remove(&self, request: RemoveRequest) -> Result<()>

Remove a saved string
Source§

async fn remove_account(&self, request: RemoveAccountRequest) -> Result<()>

Source§

async fn replace_account_x( &self, request: ReplaceAccountXRequest, ) -> Result<ReplaceAccountXResponse>

Source§

async fn reset_third_party_credentials(&self) -> Result<()>

Source§

async fn set_account_nickname_x( &self, request: SetAccountNicknameXRequest, ) -> Result<()>

Source§

async fn set_string(&self, request: SetStringRequest) -> Result<()>

Save a string in the system
Source§

impl VirtualLineIn for SonosDevice

Source§

async fn next(&self, request: NextRequest) -> Result<()>

Source§

async fn pause(&self, request: PauseRequest) -> Result<()>

Source§

async fn play(&self, request: PlayRequest) -> Result<()>

Source§

async fn previous(&self, request: PreviousRequest) -> Result<()>

Source§

async fn set_volume(&self, request: SetVolumeRequest) -> Result<()>

Source§

async fn start_transmission( &self, request: StartTransmissionRequest, ) -> Result<StartTransmissionResponse>

Source§

async fn stop(&self, request: StopRequest) -> Result<()>

Source§

async fn stop_transmission( &self, request: StopTransmissionRequest, ) -> Result<()>

Source§

impl ZoneGroupTopology for SonosDevice

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more