pub fn with_client_outputs<F>(&self, client: Client, mut f: F)
    where
        F: FnMut(&WlOutput),
    {
        self.inner
            .lock()
            .unwrap()
            .instances
            .iter()
            .filter(|output| match output.as_ref().client() {
                Some(output_client) => output_client.equals(&client),
                None => false,
            })
            .for_each(|output| f(output))
    }
/// This function allows to run a [FnMut] on every
/// [WlOutput] matching the same [Client] as provided
This function allows to run a [FnMut] on every
[WlOutput] matching the same [Client] as provided
This function allows to run a [ FnMut ] on every [ WlOutput ] matching the same [ Client ] as provided
pub fn with_client_outputs<F>(&self, client: Client, mut f: F)
    where
        F: FnMut(&WlOutput),
    {
        self.inner
            .lock()
            .unwrap()
            .instances
            .iter()
            .filter(|output| match output.as_ref().client() {
                Some(output_client) => output_client.equals(&client),
                None => false,
            })
            .for_each(|output| f(output))
    }
pub fn with_client_outputs < F > ( & self , client : Client , mut f : F ) where F : FnMut ( & WlOutput ) , { self . inner . lock ( ) . unwrap ( ) . instances . iter ( ) . filter ( | output | match output . as_ref ( ) . client ( ) { Some ( output_client ) => output_client . equals ( & client ) , None => false , } ) . for_each ( | output | f ( output ) ) }
This function allows to run a [FnMut] on every
[WlOutput] matching the same [Client] as provided
This function allows to run a [ FnMut ] on every [ WlOutput ] matching the same [ Client ] as provided
&self
client
Client
f
F
&self
client
Client
f
F