Struct ruma_signatures::SignatureSet
source · pub struct SignatureSet { /* private fields */ }
Expand description
A set of digital signatures created by a single homeserver.
Implementations
sourceimpl SignatureSet
impl SignatureSet
sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Initializes a new empty SignatureSet with room for a specific number of signatures.
Parameters
- capacity: The number of items to allocate memory for.
sourcepub fn insert(&mut self, signature: Signature) -> bool
pub fn insert(&mut self, signature: Signature) -> bool
Adds a signature to the set.
The boolean return value indicates whether or not the value was actually inserted, since subsequent inserts of the same signature have no effect.
Parameters
- signature: A
Signature
to insert into the set.
Trait Implementations
sourceimpl Clone for SignatureSet
impl Clone for SignatureSet
sourcefn clone(&self) -> SignatureSet
fn clone(&self) -> SignatureSet
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SignatureSet
impl Debug for SignatureSet
sourceimpl<'de> Deserialize<'de> for SignatureSet
impl<'de> Deserialize<'de> for SignatureSet
sourcefn 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
sourceimpl Serialize for SignatureSet
impl Serialize for SignatureSet
Auto Trait Implementations
impl RefUnwindSafe for SignatureSet
impl Send for SignatureSet
impl Sync for SignatureSet
impl Unpin for SignatureSet
impl UnwindSafe for SignatureSet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more