pub struct UnsubscribeOperation;Expand description
Unsubscribe operation for UPnP event subscriptions
This operation handles canceling existing UPnP event subscriptions for any service. Unlike regular SOAP operations, this uses HTTP UNSUBSCRIBE method instead of POST.
Implementations§
Source§impl UnsubscribeOperation
impl UnsubscribeOperation
Sourcepub fn execute(
soap_client: &SoapClient,
ip: &str,
service: Service,
request: &UnsubscribeRequest,
) -> Result<UnsubscribeResponse>
pub fn execute( soap_client: &SoapClient, ip: &str, service: Service, request: &UnsubscribeRequest, ) -> Result<UnsubscribeResponse>
Execute an unsubscribe request for a specific service
This method uses the soap-client’s unsubscribe functionality to cancel an existing UPnP event subscription for the specified service.
§Arguments
soap_client- The SOAP client to use for the requestip- Device IP addressservice- The service to unsubscribe fromrequest- The unsubscribe request parameters
§Returns
An empty response on success, or an error if the operation failed
Auto Trait Implementations§
impl Freeze for UnsubscribeOperation
impl RefUnwindSafe for UnsubscribeOperation
impl Send for UnsubscribeOperation
impl Sync for UnsubscribeOperation
impl Unpin for UnsubscribeOperation
impl UnsafeUnpin for UnsubscribeOperation
impl UnwindSafe for UnsubscribeOperation
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