pub fn wait(&self) -> &HeaderMap {
        loop {
            // Fast path: If the headers are already set, return them.
            if let Some(headers) = self.try_get() {
                return headers;
            }

            // Headers not set, jump into the slow path by creating a new
            // listener for the ready event.
            let listener = self.shared.ready.listen();

            // Double-check that the headers are not set.
            if let Some(headers) = self.try_get() {
                return headers;
            }

            // Otherwise, block until they are set.
            listener.wait();

            // If we got the notification, then the headers are likely to be
            // set.
            if let Some(headers) = self.try_get() {
                return headers;
            }
        }
    }
/// Block the current thread until the trailer headers arrive, and then
/// return them.
///
/// This is a blocking operation! If you are writing an asynchronous
/// application, then you probably want to use [`Trailer::wait_async`]
/// instead.
Block the current thread until the trailer headers arrive, and then
return them.

This is a blocking operation. If you are writing an asynchronous
application, then you probably want to use [`Trailer::wait_async`]
instead.
Block the current thread until the trailer headers arrive and then return them . This is a blocking operation . If you are writing an asynchronous application then you probably want to use [ ` Trailer :: wait_async ` ] instead .
pub fn wait(&self) -> &HeaderMap {
        loop {
            // Fast path: If the headers are already set, return them.
            if let Some(headers) = self.try_get() {
                return headers;
            }
            // Headers not set, jump into the slow path by creating a new
            // listener for the ready event.
            let listener = self.shared.ready.listen();
            // Double-check that the headers are not set.
            if let Some(headers) = self.try_get() {
                return headers;
            }
            // Otherwise, block until they are set.
            listener.wait();
            // If we got the notification, then the headers are likely to be
            // set.
            if let Some(headers) = self.try_get() {
                return headers;
            }
        }
    }
pub fn wait ( & self ) -> & HeaderMap { loop { // Fast path: If the headers are already set, return them. if let Some ( headers ) = self . try_get ( ) { return headers ; } // Headers not set, jump into the slow path by creating a new // listener for the ready event. let listener = self . shared . ready . listen ( ) ; // Double-check that the headers are not set. if let Some ( headers ) = self . try_get ( ) { return headers ; } // Otherwise, block until they are set. listener . wait ( ) ; // If we got the notification, then the headers are likely to be // set. if let Some ( headers ) = self . try_get ( ) { return headers ; } } }
Block the current thread until the trailer headers arrive, and then
return them.
Block the current thread until the trailer headers arrive and then return them .
&self