Struct agde::sync::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
impl RequestBuilder
sourcepub fn insert(&mut self, resource: String, signature: Signature) -> &mut Self
pub fn insert(&mut self, resource: String, signature: Signature) -> &mut Self
Insert the resource
’s signature
to this response.
The den::Signature
allows the pier to get the diff for us.
sourcepub fn finish(self) -> Request
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
.