tonic/util.rs
1//! Various utilities used throughout tonic.
2
3// some combinations of features might cause things here not to be used
4#![allow(dead_code)]
5
6use pin_project::pin_project;
7
8/// A pin-project compatible `Option`
9#[pin_project(project = OptionPinProj)]
10pub(crate) enum OptionPin<T> {
11 Some(#[pin] T),
12 None,
13}