pub struct ShardMetadataLimits { /* private fields */ }Expand description
Bounded-parser limits for native Xet shard metadata. Bounded-parser limits for native Xet shard metadata.
Implementations§
Source§impl ShardMetadataLimits
impl ShardMetadataLimits
Sourcepub const fn new(
max_files: NonZero<usize>,
max_xorbs: NonZero<usize>,
max_reconstruction_terms: NonZero<usize>,
max_xorb_chunks: NonZero<usize>,
) -> ShardMetadataLimits
pub const fn new( max_files: NonZero<usize>, max_xorbs: NonZero<usize>, max_reconstruction_terms: NonZero<usize>, max_xorb_chunks: NonZero<usize>, ) -> ShardMetadataLimits
Creates native Xet shard metadata limits.
Sourcepub const fn max_files(self) -> NonZero<usize>
pub const fn max_files(self) -> NonZero<usize>
Returns the maximum file sections accepted in one uploaded shard.
Sourcepub const fn max_xorbs(self) -> NonZero<usize>
pub const fn max_xorbs(self) -> NonZero<usize>
Returns the maximum xorb sections accepted in one uploaded shard.
Sourcepub const fn max_reconstruction_terms(self) -> NonZero<usize>
pub const fn max_reconstruction_terms(self) -> NonZero<usize>
Returns the maximum file reconstruction terms accepted in one uploaded shard.
Sourcepub const fn max_xorb_chunks(self) -> NonZero<usize>
pub const fn max_xorb_chunks(self) -> NonZero<usize>
Returns the maximum xorb chunk records accepted in one uploaded shard.
Trait Implementations§
Source§impl Clone for ShardMetadataLimits
impl Clone for ShardMetadataLimits
Source§fn clone(&self) -> ShardMetadataLimits
fn clone(&self) -> ShardMetadataLimits
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 ShardMetadataLimits
Source§impl Debug for ShardMetadataLimits
impl Debug for ShardMetadataLimits
Source§impl Default for ShardMetadataLimits
impl Default for ShardMetadataLimits
Source§fn default() -> ShardMetadataLimits
fn default() -> ShardMetadataLimits
Returns the “default value” for a type. Read more
impl Eq for ShardMetadataLimits
Source§impl PartialEq for ShardMetadataLimits
impl PartialEq for ShardMetadataLimits
Source§fn eq(&self, other: &ShardMetadataLimits) -> bool
fn eq(&self, other: &ShardMetadataLimits) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ShardMetadataLimits
Auto Trait Implementations§
impl Freeze for ShardMetadataLimits
impl RefUnwindSafe for ShardMetadataLimits
impl Send for ShardMetadataLimits
impl Sync for ShardMetadataLimits
impl Unpin for ShardMetadataLimits
impl UnsafeUnpin for ShardMetadataLimits
impl UnwindSafe for ShardMetadataLimits
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<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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
Source§fn override_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
fn override_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
Insert a header into the request. Read more
Source§fn append_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
fn append_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
Append a header into the request. Read more
Source§fn insert_request_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
fn insert_request_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
Insert a header into the request, if the header is not already present. Read more
Source§fn override_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
fn override_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
Insert a header into the response. Read more
Source§fn append_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
fn append_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
Append a header into the response. Read more
Source§fn insert_response_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
fn insert_response_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
Insert a header into the response, if the header is not already present. Read more