pub struct ContentOnlyChunkSet;Expand description
A chunk type set that accepts only content-addressed chunks.
This is useful for systems that only need to handle immutable content.
Trait Implementations§
Source§impl<const BODY_SIZE: usize> ChunkTypeSet<BODY_SIZE> for ContentOnlyChunkSet
impl<const BODY_SIZE: usize> ChunkTypeSet<BODY_SIZE> for ContentOnlyChunkSet
Source§fn supports(type_id: ChunkTypeId) -> bool
fn supports(type_id: ChunkTypeId) -> bool
Check if a chunk type ID is supported by this set. Read more
Source§fn deserialize(bytes: &[u8]) -> Result<AnyChunk<BODY_SIZE>>
fn deserialize(bytes: &[u8]) -> Result<AnyChunk<BODY_SIZE>>
Deserialize bytes into the appropriate chunk type. Read more
Source§fn supported_types() -> &'static [ChunkTypeId]
fn supported_types() -> &'static [ChunkTypeId]
Get the list of all supported type IDs. Read more
Source§fn format_supported_types() -> String
fn format_supported_types() -> String
Format the supported chunk types as a human-readable string. Read more
Source§impl Clone for ContentOnlyChunkSet
impl Clone for ContentOnlyChunkSet
Source§fn clone(&self) -> ContentOnlyChunkSet
fn clone(&self) -> ContentOnlyChunkSet
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 ContentOnlyChunkSet
Source§impl Debug for ContentOnlyChunkSet
impl Debug for ContentOnlyChunkSet
Source§impl Default for ContentOnlyChunkSet
impl Default for ContentOnlyChunkSet
Source§fn default() -> ContentOnlyChunkSet
fn default() -> ContentOnlyChunkSet
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContentOnlyChunkSet
impl RefUnwindSafe for ContentOnlyChunkSet
impl Send for ContentOnlyChunkSet
impl Sync for ContentOnlyChunkSet
impl Unpin for ContentOnlyChunkSet
impl UnsafeUnpin for ContentOnlyChunkSet
impl UnwindSafe for ContentOnlyChunkSet
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<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 more