MobileChatMutationRecord

Struct MobileChatMutationRecord 

Source
pub struct MobileChatMutationRecord {
Show 32 fields pub session_id: u64, pub handle: u32, pub revision: u32, pub kind: MobileChatMutationKind, pub conversation_address: Option<String>, pub sender_address: Option<String>, pub sender_hint: Option<Vec<u8>>, pub direction: Option<MobileChatDirection>, pub message_type: Option<u8>, pub wire_id: Option<u8>, pub epoch: Option<u16>, pub client_token: Option<u32>, pub sender_handle: Option<String>, pub regarding_handle: Option<u32>, pub regarding_wire_id: Option<u8>, pub regarding_direction: Option<MobileChatDirection>, pub regarding_sender_hint: Option<Vec<u8>>, pub background_color: Option<Vec<u8>>, pub text_color: Option<Vec<u8>>, pub original_handle: Option<u32>, pub original_wire_id: Option<u8>, pub original_direction: Option<MobileChatDirection>, pub original_sender_hint: Option<Vec<u8>>, pub body: Option<String>, pub complete: Option<bool>, pub present_fragments: Option<u16>, pub fragment_count: Option<u8>, pub finalized: Option<bool>, pub presence: MobileChatPresence, pub received_late: bool, pub notify: bool, pub rx: Option<MobileChatRxMetadataRecord>,
}

Fields§

§session_id: u64

A facade-session namespace prevents the engine’s process-local u32 handles from colliding after restart.

§handle: u32§revision: u32§kind: MobileChatMutationKind§conversation_address: Option<String>§sender_address: Option<String>§sender_hint: Option<Vec<u8>>

The sender’s 3-byte claimed hint, for a channel group message. The only sender identity a multicast frame is required to carry; present whether or not sender_address could be resolved.

§direction: Option<MobileChatDirection>§message_type: Option<u8>§wire_id: Option<u8>§epoch: Option<u16>§client_token: Option<u32>§sender_handle: Option<String>§regarding_handle: Option<u32>§regarding_wire_id: Option<u8>

When a reply or emote references a message the engine holds no live handle for, these export the wire reference the same way the original_* fields do for edits: the target’s wire ID within regarding_direction’s stream, plus the hint identifying which member’s stream in a channel group.

§regarding_direction: Option<MobileChatDirection>§regarding_sender_hint: Option<Vec<u8>>§background_color: Option<Vec<u8>>§text_color: Option<Vec<u8>>§original_handle: Option<u32>§original_wire_id: Option<u8>

When an edit/delete references a message the engine no longer holds a live handle for (composed before a restart), these export the wire reference so the platform can resolve it against persisted rows: the original’s wire ID within original_direction’s stream of the record’s conversation_address conversation.

§original_direction: Option<MobileChatDirection>§original_sender_hint: Option<Vec<u8>>

The claimed hint of the original’s sender, for a channel group conversation. Inbound group streams are per-member, so matching a wire reference there needs the hint as well as the ID and direction.

§body: Option<String>§complete: Option<bool>§present_fragments: Option<u16>§fragment_count: Option<u8>§finalized: Option<bool>§presence: MobileChatPresence

Ordered-slot presence for Insert records (spinner placeholder, real message, or loss marker). UpdateBody/Edit/Delete leave it at Present; the host does not reinterpret presence on those.

§received_late: bool

The record fills a slot reserved earlier by a gap, so it arrived out of order and should render a “received late” caption.

§notify: bool

The host should raise a user notification for this record (single-frame arrival, fragment completion, or notify deadline; never placeholders).

Whether a notification is actually shown remains the host’s decision — a muted conversation still produces records with this set, and still counts as unread.

§rx: Option<MobileChatRxMetadataRecord>

Radio metadata for the frame that produced this record, when one did.

Trait Implementations§

Source§

impl Clone for MobileChatMutationRecord

Source§

fn clone(&self) -> MobileChatMutationRecord

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<UT> ConvertError<UT> for MobileChatMutationRecord

Source§

impl Debug for MobileChatMutationRecord

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<UT> FfiConverter<UT> for MobileChatMutationRecord

Source§

const TYPE_ID_META: MetadataBuffer

Type ID metadata, serialized into a MetadataBuffer.
Source§

type FfiType = RustBuffer

The low-level type used for passing values of this type over the FFI. Read more
Source§

fn lower(v: Self) -> RustBuffer

Lower a rust value of the target type, into an FFI value of type Self::FfiType. Read more
Source§

fn try_lift(buf: RustBuffer) -> Result<Self>

Lift a rust value of the target type, from an FFI value of type Self::FfiType. Read more
Source§

fn write(obj: Self, buf: &mut Vec<u8>)

Write a rust value into a buffer, to send over the FFI in serialized form. Read more
Source§

fn try_read(buf: &mut &[u8]) -> Result<Self>

Read a rust value from a buffer, received over the FFI in serialized form. Read more
Source§

impl<UT> Lift<UT> for MobileChatMutationRecord

Source§

type FfiType = <MobileChatMutationRecord as FfiConverter<UT>>::FfiType

Source§

fn try_lift(v: Self::FfiType) -> Result<Self>

Source§

fn try_read(buf: &mut &[u8]) -> Result<Self>

Source§

fn try_lift_from_rust_buffer(v: RustBuffer) -> Result<Self, Error>

Convenience method
Source§

impl<UT> LiftRef<UT> for MobileChatMutationRecord

Source§

impl<UT> LiftReturn<UT> for MobileChatMutationRecord

Source§

type ReturnType = <MobileChatMutationRecord as Lift<UT>>::FfiType

FFI return type for trait interfaces
Source§

fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>

Lift a successfully returned value from a trait interface
Source§

fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self

Lift a foreign returned value from a trait interface Read more
Source§

fn lift_error(_buf: RustBuffer) -> Self

Lift a Rust value for a callback interface method error result Read more
Source§

fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self

Lift a Rust value for an unexpected callback interface error Read more
Source§

impl<UT> Lower<UT> for MobileChatMutationRecord

Source§

type FfiType = <MobileChatMutationRecord as FfiConverter<UT>>::FfiType

Source§

fn lower(obj: Self) -> Self::FfiType

Source§

fn write(obj: Self, buf: &mut Vec<u8>)

Source§

fn lower_into_rust_buffer(obj: Self) -> RustBuffer

Convenience method
Source§

impl<UT> LowerError<UT> for MobileChatMutationRecord

Source§

fn lower_error(obj: Self) -> RustBuffer

Lower this value for scaffolding function return Read more
Source§

impl<UT> LowerReturn<UT> for MobileChatMutationRecord

Source§

type ReturnType = <MobileChatMutationRecord as Lower<UT>>::FfiType

The type that should be returned by scaffolding functions for this type. Read more
Source§

fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>

Lower the return value from an scaffolding call Read more
Source§

fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>

Lower the return value for failed argument lifts Read more
Source§

impl PartialEq for MobileChatMutationRecord

Source§

fn eq(&self, other: &MobileChatMutationRecord) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<UT> TypeId<UT> for MobileChatMutationRecord

Source§

impl Eq for MobileChatMutationRecord

Source§

impl StructuralPartialEq for MobileChatMutationRecord

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, UT> HandleAlloc<UT> for T
where T: Send + Sync,

Source§

fn new_handle(value: Arc<T>) -> Handle

Create a new handle for an Arc value Read more
Source§

unsafe fn clone_handle(handle: Handle) -> Handle

Clone a handle Read more
Source§

unsafe fn consume_handle(handle: Handle) -> Arc<T>

Consume a handle, getting back the initial Arc<> Read more
Source§

unsafe fn get_arc(handle: Handle) -> Arc<Self>

Get a clone of the Arc<> using a “borrowed” handle. Read more
§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.