pub fn post_formats(&self, this: wl::ObjectId, client: &Client) -> Result<(), Error> {
        for (format, _) in SUPPORTED_PIXEL_FORMATS.iter() {
            client.event_queue().post(this, ZwpLinuxDmabufV1Event::Format { format: *format })?;
            if self.client_version >= 3 {
                for modifier in SUPPORTED_MODIFIERS.iter() {
                    client.event_queue().post(
                        this,
                        ZwpLinuxDmabufV1Event::Modifier {
                            format: *format,
                            modifier_hi: (modifier >> 32) as u32,
                            modifier_lo: (modifier & 0xffffffff) as u32,
                        },
                    )?;
                }
            }
        }
        Ok(())
    }
/// Posts events back to the client for each supported pixel format.
Posts events back to the client for each supported pixel format.
Posts events back to the client for each supported pixel format .
pub fn post_formats(&self, this: wl::ObjectId, client: &Client) -> Result<(), Error> {
        for (format, _) in SUPPORTED_PIXEL_FORMATS.iter() {
            client.event_queue().post(this, ZwpLinuxDmabufV1Event::Format { format: *format })?;
            if self.client_version >= 3 {
                for modifier in SUPPORTED_MODIFIERS.iter() {
                    client.event_queue().post(
                        this,
                        ZwpLinuxDmabufV1Event::Modifier {
                            format: *format,
                            modifier_hi: (modifier >> 32) as u32,
                            modifier_lo: (modifier & 0xffffffff) as u32,
                        },
                    )?;
                }
            }
        }
        Ok(())
    }
pub fn post_formats ( & self , this : wl :: ObjectId , client : & Client ) -> Result < ( ) , Error > { for ( format , _ ) in SUPPORTED_PIXEL_FORMATS . iter ( ) { client . event_queue ( ) . post ( this , ZwpLinuxDmabufV1Event :: Format { format : * format } ) ? ; if self . client_version >= 3 { for modifier in SUPPORTED_MODIFIERS . iter ( ) { client . event_queue ( ) . post ( this , ZwpLinuxDmabufV1Event :: Modifier { format : * format , modifier_hi : ( modifier >> 32 ) as u32 , modifier_lo : ( modifier & 0xffffffff ) as u32 , } , ) ? ; } } } Ok ( ( ) ) }
Posts events back to the client for each supported pixel format.
Posts events back to the client for each supported pixel format .
&self
this
wl::ObjectId
client
&Client
&self
this
wl::ObjectId
client
&Client