pub struct OastAuthorityLimits { /* private fields */ }Expand description
Explicit bounds owned by one authority epoch.
Implementations§
Source§impl OastAuthorityLimits
impl OastAuthorityLimits
Sourcepub fn new(
max_registrations: u16,
max_polls_per_registration: u16,
max_events_per_poll: u16,
max_unique_events_per_registration: u16,
max_lifetime_millis: u64,
) -> Result<Self, OastError>
pub fn new( max_registrations: u16, max_polls_per_registration: u16, max_events_per_poll: u16, max_unique_events_per_registration: u16, max_lifetime_millis: u64, ) -> Result<Self, OastError>
Validates all authority bounds.
Sourcepub const fn max_registrations(self) -> u16
pub const fn max_registrations(self) -> u16
Returns the registration bound.
Sourcepub const fn max_polls_per_registration(self) -> u16
pub const fn max_polls_per_registration(self) -> u16
Returns the per-registration poll bound.
Sourcepub const fn max_events_per_poll(self) -> u16
pub const fn max_events_per_poll(self) -> u16
Returns the per-poll event bound.
Sourcepub const fn max_unique_events_per_registration(self) -> u16
pub const fn max_unique_events_per_registration(self) -> u16
Returns the per-registration unique-event bound.
Sourcepub const fn max_lifetime_millis(self) -> u64
pub const fn max_lifetime_millis(self) -> u64
Returns the lifetime bound.
Trait Implementations§
Source§impl Clone for OastAuthorityLimits
impl Clone for OastAuthorityLimits
Source§fn clone(&self) -> OastAuthorityLimits
fn clone(&self) -> OastAuthorityLimits
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OastAuthorityLimits
Source§impl Debug for OastAuthorityLimits
impl Debug for OastAuthorityLimits
impl Eq for OastAuthorityLimits
Source§impl PartialEq for OastAuthorityLimits
impl PartialEq for OastAuthorityLimits
impl StructuralPartialEq for OastAuthorityLimits
Auto Trait Implementations§
impl Freeze for OastAuthorityLimits
impl RefUnwindSafe for OastAuthorityLimits
impl Send for OastAuthorityLimits
impl Sync for OastAuthorityLimits
impl Unpin for OastAuthorityLimits
impl UnsafeUnpin for OastAuthorityLimits
impl UnwindSafe for OastAuthorityLimits
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more