agde::sync

Struct RequestBuilder

source
pub struct RequestBuilder { /* private fields */ }
Expand description

A builder struct for a Request.

See crate::Manager::apply_hash_check_reply for usage details.

Implementations§

source§

impl RequestBuilder

source

pub fn insert(&mut self, resource: String, signature: Signature) -> &mut Self

Insert the resource’s signature to this response.

The [dach::Signature] allows the pier to get the diff for us.

source

pub fn finish(self) -> Request

Make a Request from this builder and a signature of all the resources inserted.

Call crate::Manager::process_sync_reply to get a crate::Message.

Trait Implementations§