pub async fn unsubscribe(&self, url: &Uri, sid: &str) -> Result<()> {
        let req = Request::builder()
            .uri(self.event_sub_url(url))
            .method("UNSUBSCRIBE")
            .header("SID", sid)
            .body(hyper::Body::empty())
            .expect("infallible");

        hyper::Client::new().request(req).await?.err_if_not_200()?;

        Ok(())
    }
/// Unsubscribe from further event notifications.
///
/// The SID is usually obtained by the [subscribe](struct.Service.html#method.subscribe) method.
///
/// When the sid is invalid, the control point will respond with a `412 Preconditition failed`.
Unsubscribe from further event notifications.

When the sid is invalid, the control point will respond with a `412 Preconditition failed`.
Unsubscribe from further event notifications . When the sid is invalid the control point will respond with a ` 412 Preconditition failed ` .
pub async fn unsubscribe(&self, url: &Uri, sid: &str) -> Result<()> {
        let req = Request::builder()
            .uri(self.event_sub_url(url))
            .method("UNSUBSCRIBE")
            .header("SID", sid)
            .body(hyper::Body::empty())
            .expect("infallible");
        hyper::Client::new().request(req).await?.err_if_not_200()?;
        Ok(())
    }
pub async fn unsubscribe ( & self , url : & Uri , sid : & str ) -> Result < ( ) > { let req = Request :: builder ( ) . uri ( self . event_sub_url ( url ) ) . method ( " " ) . header ( " " , sid ) . body ( hyper :: Body :: empty ( ) ) . expect ( " " ) ; hyper :: Client :: new ( ) . request ( req ) . await ? . err_if_not_200 ( ) ? ; Ok ( ( ) ) }
Unsubscribe from further event notifications.
Unsubscribe from further event notifications .
&self
url
&Uri
sid
&str
&self
url
&Uri
sid
&str