pub struct WithTimezone<Type, Timezone: TimeZone + Sync + Send>(pub Type, pub Timezone);
Tuple Fields§
§0: Type
§1: Timezone
Trait Implementations§
source§impl<T> AsMetrics for WithTimezone<Interface, T>where
T: TimeZone + Debug + Sync + Send + 'static + Copy,
impl<T> AsMetrics for WithTimezone<Interface, T>where T: TimeZone + Debug + Sync + Send + 'static + Copy,
fn register_as_metrics(self: Box<Self>, registry: &mut Registry)
source§impl<Type: Clone, Timezone: Clone + TimeZone + Sync + Send> Clone for WithTimezone<Type, Timezone>
impl<Type: Clone, Timezone: Clone + TimeZone + Sync + Send> Clone for WithTimezone<Type, Timezone>
source§fn clone(&self) -> WithTimezone<Type, Timezone>
fn clone(&self) -> WithTimezone<Type, Timezone>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<Type, Timezone> RefUnwindSafe for WithTimezone<Type, Timezone>where Timezone: RefUnwindSafe, Type: RefUnwindSafe,
impl<Type, Timezone> Send for WithTimezone<Type, Timezone>where Type: Send,
impl<Type, Timezone> Sync for WithTimezone<Type, Timezone>where Type: Sync,
impl<Type, Timezone> Unpin for WithTimezone<Type, Timezone>where Timezone: Unpin, Type: Unpin,
impl<Type, Timezone> UnwindSafe for WithTimezone<Type, Timezone>where Timezone: UnwindSafe, Type: UnwindSafe,
Blanket Implementations§
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,
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 more