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 [dach::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
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RequestBuilder
impl RefUnwindSafe for RequestBuilder
impl Send for RequestBuilder
impl Sync for RequestBuilder
impl Unpin for RequestBuilder
impl UnwindSafe for RequestBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more