#[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 duplicate 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
impl Eq for ExternalSendersExt
impl StructuralPartialEq for ExternalSendersExt
Auto Trait Implementations§
impl Freeze for ExternalSendersExt
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> MlsExtension for Twhere
T: MlsCodecExtension,
impl<T> MlsExtension for Twhere
T: MlsCodecExtension,
Source§type SerializationError = Error
type SerializationError = Error
Error type of the underlying serializer that can convert this type into a
Vec<u8>
.Source§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.