pub enum Incoming {
Application {
plaintext: Vec<u8>,
sender_identity: Vec<u8>,
},
CommitApplied,
CommitRejected,
Proposal,
Ignored,
}Expand description
Classified result of feeding an inbound MLS message to the group.
Variants§
Application
A decrypted application payload (a real chat message/control).
sender_identity is the AUTHENTICATED sender: the credential OpenMLS verified
while decrypting, whose serialized content is that member’s leaf id (the same
bytes members() returns as identity, i.e. the app’s memberId).
It exists because MLS on its own only proves “SOME member of this epoch sent this”. The application layer used to take the sender from a field inside the decrypted payload — a value the sender picks freely — and gate admin actions on it, so any member could claim to be an admin (audit K-1). Handing the verified identity out lets the caller reject a payload whose claimed sender isn’t the one MLS authenticated.
CommitApplied
A membership change (Commit) was applied; the epoch advanced.
CommitRejected
A Commit was REFUSED because it would push the group past MAX_GROUP_MEMBERS (audit finding #1). It was NOT merged — the epoch did not advance — so a hostile admin cannot force an over-cap member onto this honest client.
Proposal
A proposal was stored (awaiting a Commit). Nothing to show yet.
Ignored
Our own message echoed back / not for us / stale epoch — ignore.
Trait Implementations§
Source§impl<UT> ConvertError<UT> for Incoming
impl<UT> ConvertError<UT> for Incoming
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl<UT> FfiConverter<UT> for Incoming
impl<UT> FfiConverter<UT> for Incoming
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
Source§fn lower(v: Self) -> RustBuffer
fn lower(v: Self) -> RustBuffer
Source§fn try_lift(buf: RustBuffer) -> Result<Self>
fn try_lift(buf: RustBuffer) -> Result<Self>
Source§impl<UT> LiftReturn<UT> for Incoming
impl<UT> LiftReturn<UT> for Incoming
Source§fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
Source§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
Source§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
Source§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Source§impl<UT> LowerError<UT> for Incoming
impl<UT> LowerError<UT> for Incoming
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for Incoming
impl<UT> LowerReturn<UT> for Incoming
Source§type ReturnType = <Incoming as Lower<UT>>::FfiType
type ReturnType = <Incoming as Lower<UT>>::FfiType
Source§fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
Source§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Auto Trait Implementations§
impl Forget for Incoming
impl Freeze for Incoming
impl Move for Incoming
impl RefUnwindSafe for Incoming
impl Send for Incoming
impl Sync for Incoming
impl Unpin for Incoming
impl UnsafeUnpin for Incoming
impl UnwindSafe for Incoming
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
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> ⓘ
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> ⓘ
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