agde::sync

Struct ResponseBuilder

source
pub struct ResponseBuilder<'a> { /* private fields */ }
Expand description

Builder for a Response.

Follow the instructions from how you got this builder and insert the appropriate resources. Execute the action returned by the aforementioned function.

Implementations§

source§

impl<'a> ResponseBuilder<'a>

source

pub fn next_signature( &mut self, ) -> Option<(&str, &Signature, Option<&mut Unwinder<'a>>)>

Use this in a while let Some((resource, signature)) = response_builder.next_signature() loop to add all the returned values to Self::add_diff.

If you don’t have a resource, just don’t call Self::add_diff. Agde will then automatically send a delete event then.

source

pub fn unwinder(&mut self) -> Option<&mut Unwinder<'a>>

Returns the unwinder (if any) to use for the resource before