Struct ambient_guest_bridge::MessageContext
source · pub struct MessageContext {
pub source: Source,
pub listener: Listener,
}
Expand description
Message context.
Fields§
§source: Source
Where the message came from.
listener: Listener
The listener that can be used to stop listening.
Implementations§
source§impl MessageContext
impl MessageContext
sourcepub fn client_user_id(&self) -> Option<String>
pub fn client_user_id(&self) -> Option<String>
The user that sent this message, if any.
sourcepub fn client_entity_id(&self) -> Option<EntityId>
pub fn client_entity_id(&self) -> Option<EntityId>
The entity ID of the player that sent this message, if any.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for MessageContext
impl Send for MessageContext
impl Sync for MessageContext
impl Unpin for MessageContext
impl UnwindSafe for MessageContext
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