chore(ops/yandex-cloud-rs): re-export some tonic types
These are useful for downstream users of the library, who might not need all the rest of the tonic stuff. Change-Id: Iab4d941696ae3c7a33b25815b72f92598aa82b80 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8763 Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
This commit is contained in:
parent
6f912f5ecf
commit
ed388f019a
1 changed files with 9 additions and 0 deletions
|
@ -39,6 +39,15 @@
|
|||
use tonic::metadata::{Ascii, MetadataValue};
|
||||
use tonic::service::Interceptor;
|
||||
|
||||
/// Publicly re-export some types from tonic which users might need
|
||||
/// for implementing traits, or for naming concrete client types.
|
||||
pub mod tonic_exports {
|
||||
pub use tonic::service::interceptor::InterceptedService;
|
||||
pub use tonic::transport::Channel;
|
||||
pub use tonic::transport::Endpoint;
|
||||
pub use tonic::Status;
|
||||
}
|
||||
|
||||
/// Helper trait for types or closures that can provide authentication
|
||||
/// tokens for Yandex Cloud.
|
||||
pub trait TokenProvider {
|
||||
|
|
Loading…
Reference in a new issue