pub struct TenantView { /* private fields */ }Expand description
Where the tenants row is read from — the ReplicationView shape, for
the same reason: the band starts before the server, and the entitlement
slot (if this build has one) does not exist yet. Unfilled it reads None
and the band draws no row; a metered server fills it once, at start.
Implementations§
Source§impl TenantView
impl TenantView
pub fn new() -> Self
Sourcepub fn fill(&self, source: impl Fn() -> TenantCounts + Send + Sync + 'static)
pub fn fill(&self, source: impl Fn() -> TenantCounts + Send + Sync + 'static)
Fill it. The second call is ignored, as for ReplicationView::fill.
Sourcepub fn counts(&self) -> Option<TenantCounts>
pub fn counts(&self) -> Option<TenantCounts>
The counts now, or None when nothing fills this view — which on a
community build is always, and is drawn as nothing.
Trait Implementations§
Source§impl Clone for TenantView
impl Clone for TenantView
Source§impl Debug for TenantView
impl Debug for TenantView
Auto Trait Implementations§
impl !RefUnwindSafe for TenantView
impl !UnwindSafe for TenantView
impl Freeze for TenantView
impl Send for TenantView
impl Sync for TenantView
impl Unpin for TenantView
impl UnsafeUnpin for TenantView
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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