pub struct Share {
pub secret_id: u64,
pub version: u32,
pub replica_id: Option<u64>,
pub bytes: Vec<u8>,
}Expand description
A single stored share entry, fully self-describing.
Fields§
§secret_id: u64Numeric identifier of the secret this share belongs to.
version: u32Version number of the secret.
replica_id: Option<u64>Stable per-device identifier of the replica that produced this
share, copied from
derec_proto::StoreShareRequestMessage::replica_id when the
helper persisted the write.
None when the writer was a non-replica Owner. Some(id) when
the writer was ReplicaSource. Two distinct replicas may produce
the same (secret_id, channel_id, version) independently
— see crate::protocol::DeRecShareStore::save for the
conceptual storage key and the disambiguation contract.
bytes: Vec<u8>Opaque protobuf bytes — see crate::protocol::DeRecShareStore for
the per-side format.
Trait Implementations§
Auto Trait Implementations§
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> 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