Skip to content

Commit

Permalink
docs: improve
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Lamb <[email protected]>
  • Loading branch information
crepererum and alamb committed Aug 25, 2023
1 parent 580322e commit 912861e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arrow-flight/src/decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ impl FlightRecordBatchStream {

/// Trailers attached to this stream.
///
/// This is only filled when the entire stream was consumed.
/// Note that this will return `None` until the entire stream is consumed.
/// Only after calling `next()` returns `None`, might any available trailers be returned.
pub fn trailers(&self) -> Option<MetadataMap> {
self.trailers.as_ref().and_then(|trailers| trailers.get())
}
Expand Down

0 comments on commit 912861e

Please sign in to comment.