pub struct SigStoreImpl<S, V, B> { /* private fields */ }Expand description
An implementation of SigStore that accumulates signature/value pairs in
memory or on disk.
See the module documentation for more information.
Trait Implementations§
Source§impl<S: BinSafe + Sig + Send + Sync, V: BinSafe> SigStore<S, V> for SigStoreImpl<S, V, BufWriter<File>>
impl<S: BinSafe + Sig + Send + Sync, V: BinSafe> SigStore<S, V> for SigStoreImpl<S, V, BufWriter<File>>
type Error = Error
type ShardStore = ShardStoreImpl<S, V, BufReader<File>>
Source§fn try_push(&mut self, sig_val: SigVal<S, V>) -> Result<(), Self::Error>
fn try_push(&mut self, sig_val: SigVal<S, V>) -> Result<(), Self::Error>
Tries to add a new signature/value pair to the store.
Source§fn into_shard_store(self, shard_high_bits: u32) -> Result<Self::ShardStore>
fn into_shard_store(self, shard_high_bits: u32) -> Result<Self::ShardStore>
Turns this store into a
ShardStore whose shards are defined by the
shard_high_bits high bits of the signatures. Read moreSource§fn max_shard_high_bits(&self) -> u32
fn max_shard_high_bits(&self) -> u32
Returns the maximum number of high bits whose count we keep track of. Read more
Source§impl<S: BinSafe + Sig + Send + Sync, V: BinSafe> SigStore<S, V> for SigStoreImpl<S, V, Vec<SigVal<S, V>>>
impl<S: BinSafe + Sig + Send + Sync, V: BinSafe> SigStore<S, V> for SigStoreImpl<S, V, Vec<SigVal<S, V>>>
type Error = Infallible
type ShardStore = ShardStoreImpl<S, V, Arc<Vec<SigVal<S, V>>>>
Source§fn try_push(&mut self, sig_val: SigVal<S, V>) -> Result<(), Self::Error>
fn try_push(&mut self, sig_val: SigVal<S, V>) -> Result<(), Self::Error>
Tries to add a new signature/value pair to the store.
Source§fn into_shard_store(self, shard_high_bits: u32) -> Result<Self::ShardStore>
fn into_shard_store(self, shard_high_bits: u32) -> Result<Self::ShardStore>
Turns this store into a
ShardStore whose shards are defined by the
shard_high_bits high bits of the signatures. Read moreSource§fn max_shard_high_bits(&self) -> u32
fn max_shard_high_bits(&self) -> u32
Returns the maximum number of high bits whose count we keep track of. Read more
Auto Trait Implementations§
impl<S, V, B> Freeze for SigStoreImpl<S, V, B>
impl<S, V, B> RefUnwindSafe for SigStoreImpl<S, V, B>
impl<S, V, B> Send for SigStoreImpl<S, V, B>
impl<S, V, B> Sync for SigStoreImpl<S, V, B>
impl<S, V, B> Unpin for SigStoreImpl<S, V, B>
impl<S, V, B> UnwindSafe for SigStoreImpl<S, V, B>
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
Source§impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
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> Pointable for T
impl<T> Pointable for T
Source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
Source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.