Struct mls_rs::extension::built_in::ExternalSendersExt
source · #[non_exhaustive]pub struct ExternalSendersExt {
pub allowed_senders: Vec<SigningIdentity>,
}
Expand description
Enable proposals by an ExternalClient.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.allowed_senders: Vec<SigningIdentity>
Implementations§
source§impl ExternalSendersExt
impl ExternalSendersExt
pub fn new(allowed_senders: Vec<SigningIdentity>) -> Self
Trait Implementations§
source§impl Clone for ExternalSendersExt
impl Clone for ExternalSendersExt
source§fn clone(&self) -> ExternalSendersExt
fn clone(&self) -> ExternalSendersExt
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExternalSendersExt
impl Debug for ExternalSendersExt
source§impl MlsCodecExtension for ExternalSendersExt
impl MlsCodecExtension for ExternalSendersExt
fn extension_type() -> ExtensionType
source§impl MlsDecode for ExternalSendersExt
impl MlsDecode for ExternalSendersExt
source§impl MlsEncode for ExternalSendersExt
impl MlsEncode for ExternalSendersExt
source§impl MlsSize for ExternalSendersExt
impl MlsSize for ExternalSendersExt
fn mls_encoded_len(&self) -> usize
source§impl PartialEq for ExternalSendersExt
impl PartialEq for ExternalSendersExt
source§fn eq(&self, other: &ExternalSendersExt) -> bool
fn eq(&self, other: &ExternalSendersExt) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ExternalSendersExt
impl StructuralEq for ExternalSendersExt
impl StructuralPartialEq for ExternalSendersExt
Auto Trait Implementations§
impl RefUnwindSafe for ExternalSendersExt
impl Send for ExternalSendersExt
impl Sync for ExternalSendersExt
impl Unpin for ExternalSendersExt
impl UnwindSafe for ExternalSendersExt
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<T> MlsExtension for Twhere
T: MlsCodecExtension,
impl<T> MlsExtension for Twhere
T: MlsCodecExtension,
§type SerializationError = Error
type SerializationError = Error
Error type of the underlying serializer that can convert this type into a
Vec<u8>
.§type DeserializationError = Error
type DeserializationError = Error
Error type of the underlying deserializer that can convert a
Vec<u8>
into this type.source§fn extension_type() -> ExtensionType
fn extension_type() -> ExtensionType
Extension type value that this type represents.
source§fn to_bytes(&self) -> Result<Vec<u8>, <T as MlsExtension>::SerializationError>
fn to_bytes(&self) -> Result<Vec<u8>, <T as MlsExtension>::SerializationError>
Convert this type to opaque bytes.
source§fn from_bytes(
data: &[u8]
) -> Result<T, <T as MlsExtension>::DeserializationError>
fn from_bytes( data: &[u8] ) -> Result<T, <T as MlsExtension>::DeserializationError>
Create this type from opaque bytes.
source§fn into_extension(self) -> Result<Extension, ExtensionError>
fn into_extension(self) -> Result<Extension, ExtensionError>
Convert this type into an Extension.
source§fn from_extension(ext: &Extension) -> Result<Self, ExtensionError>
fn from_extension(ext: &Extension) -> Result<Self, ExtensionError>
Create this type from an Extension.