pub enum RoundReply {
UploadGrant(Result<BlobUploadGrant, TransportError>),
Upload(Result<(), TransportError>),
Sync(Result<Vec<u8>, TransportError>),
Downloads(Vec<Result<Vec<u8>, TransportError>>),
}Expand description
The host’s answer to a RoundOperation.
Variants§
UploadGrant(Result<BlobUploadGrant, TransportError>)
Answers RoundOperation::UploadGrant with the grant endpoint’s body.
Upload(Result<(), TransportError>)
Answers RoundOperation::UploadPut or RoundOperation::Upload. A
failed PUT makes submit ask for Upload next.
Sync(Result<Vec<u8>, TransportError>)
Answers RoundOperation::Sync with the assembled response bytes.
Downloads(Vec<Result<Vec<u8>, TransportError>>)
Answers RoundOperation::Downloads with one result per fetch, in
order.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RoundReply
impl RefUnwindSafe for RoundReply
impl Send for RoundReply
impl Sync for RoundReply
impl Unpin for RoundReply
impl UnsafeUnpin for RoundReply
impl UnwindSafe for RoundReply
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