pub struct GlobalConfig { /* private fields */ }Implementations§
Source§impl GlobalConfig
impl GlobalConfig
pub const fn const_new() -> GlobalConfig
pub async fn get_or_init<T>(&'static self, config: Config) -> &'static Config
pub async fn get_or_try_init<T, E>( &'static self, config: T, ) -> Result<&'static Config, <T as TryInto<Config>>::Error>
pub fn get(&'static self) -> Option<&'static Config>
pub fn get_unchecked(&'static self) -> &'static Config
Auto Trait Implementations§
impl !Freeze for GlobalConfig
impl !RefUnwindSafe for GlobalConfig
impl !UnwindSafe for GlobalConfig
impl Send for GlobalConfig
impl Sync for GlobalConfig
impl Unpin for GlobalConfig
impl UnsafeUnpin for GlobalConfig
Blanket Implementations§
Source§impl<T, U> AsyncTryInto<T> for Uwhere
T: AsyncTryFrom<U>,
impl<T, U> AsyncTryInto<T> for Uwhere
T: AsyncTryFrom<U>,
type Error = <T as AsyncTryFrom<U>>::Error
async fn async_try_into(self) -> Result<T, <U as AsyncTryInto<T>>::Error>
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request