pub struct Response {
pub request_id: u64,
pub status: Status,
pub bytes_produced: u64,
pub watermark_lsn: u64,
pub payload: Option<Arc<[u8]>>,
}Expand description
A response envelope sent from the Data Plane (TPC) back to the Control Plane (Tokio).
Fields§
§request_id: u64Matches the originating Request::request_id.
status: StatusOutcome of the execution.
bytes_produced: u64Number of bytes produced by this response (for backpressure accounting).
watermark_lsn: u64The LSN watermark at which this response was computed.
payload: Option<Arc<[u8]>>The result payload. None if the request was cancelled or failed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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