pub enum SnapshotReceiverRequest {
Batch {
batch: Vec<SnapshotElement>,
responder: SnapshotReceiverBatchResponder,
},
ReportError {
error: CollectorError,
responder: SnapshotReceiverReportErrorResponder,
},
}
Expand description
Protocol to transmit a snapshot as a stream of elements.
Variants§
Batch
Delivers a batch of snapshot elements.
It will be called repeatedly until no elements are left, and then one final time with an empty vector to signal the end of the stream.
ReportError
Reports an error. No other batches or errors will follow.
Implementations§
Source§impl SnapshotReceiverRequest
impl SnapshotReceiverRequest
pub fn into_batch( self, ) -> Option<(Vec<SnapshotElement>, SnapshotReceiverBatchResponder)>
pub fn into_report_error( self, ) -> Option<(CollectorError, SnapshotReceiverReportErrorResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SnapshotReceiverRequest
impl !RefUnwindSafe for SnapshotReceiverRequest
impl Send for SnapshotReceiverRequest
impl Sync for SnapshotReceiverRequest
impl Unpin for SnapshotReceiverRequest
impl !UnwindSafe for SnapshotReceiverRequest
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