pub struct RetrievalKit {
pub capsule: Capsule,
pub queried_addresses: BTreeSet<Address>,
pub conditions: Option<Conditions>,
}
Expand description
An object encapsulating the information necessary for retrieval of cfrags from Ursulas. Contains the capsule and the checksum addresses of Ursulas from which the requester already received cfrags.
Fields§
§capsule: Capsule
The ciphertext’s capsule.
queried_addresses: BTreeSet<Address>
The addresses that have already been queried for reencryption.
conditions: Option<Conditions>
A blob of bytes containing decryption conditions for this message.
Implementations§
Source§impl RetrievalKit
impl RetrievalKit
Sourcepub fn from_message_kit(message_kit: &MessageKit) -> Self
pub fn from_message_kit(message_kit: &MessageKit) -> Self
Creates a new retrieval kit from a message kit.
Sourcepub fn new(
capsule: &Capsule,
queried_addresses: impl IntoIterator<Item = Address>,
conditions: Option<&Conditions>,
) -> Self
pub fn new( capsule: &Capsule, queried_addresses: impl IntoIterator<Item = Address>, conditions: Option<&Conditions>, ) -> Self
Creates a new retrieval kit recording the addresses already queried for reencryption.
Trait Implementations§
Source§impl Debug for RetrievalKit
impl Debug for RetrievalKit
Source§impl<'de> Deserialize<'de> for RetrievalKit
impl<'de> Deserialize<'de> for RetrievalKit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RetrievalKit
impl PartialEq for RetrievalKit
Source§impl<'a> ProtocolObject<'a> for RetrievalKit
impl<'a> ProtocolObject<'a> for RetrievalKit
Source§impl Serialize for RetrievalKit
impl Serialize for RetrievalKit
impl StructuralPartialEq for RetrievalKit
Auto Trait Implementations§
impl Freeze for RetrievalKit
impl RefUnwindSafe for RetrievalKit
impl Send for RetrievalKit
impl Sync for RetrievalKit
impl Unpin for RetrievalKit
impl UnwindSafe for RetrievalKit
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> FromBytes for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromBytes for Twhere
T: for<'de> Deserialize<'de>,
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