pub struct TypedJoinContext<'a, S>where
S: PondSchema,{ /* private fields */ }Implementations§
Source§impl<'a, S> TypedJoinContext<'a, S>where
S: PondSchema,
impl<'a, S> TypedJoinContext<'a, S>where
S: PondSchema,
pub fn new(raw: &'a mut JoinContext) -> Self
pub fn raw(&mut self) -> &mut JoinContext
pub fn user_id(&self) -> &str
pub fn channel(&self) -> TypedChannel<S>
pub fn join_params(&self) -> Result<S::JoinParams>
pub async fn accept(&mut self, assigns: &S::Assigns) -> Result<&mut Self>
pub async fn decline( &mut self, code: u16, message: impl Into<String>, ) -> Result<()>
pub async fn reply<E>(&self, payload: &E::Response) -> Result<()>where
E: PondEvent,
pub async fn track(&self, presence: &S::Presence) -> Result<()>
pub async fn broadcast<E>(&self, payload: &E::Payload) -> Result<()>where
E: PondEvent,
Auto Trait Implementations§
impl<'a, S> !RefUnwindSafe for TypedJoinContext<'a, S>
impl<'a, S> !UnwindSafe for TypedJoinContext<'a, S>
impl<'a, S> Freeze for TypedJoinContext<'a, S>where
PhantomData<S>: Freeze,
impl<'a, S> Send for TypedJoinContext<'a, S>where
PhantomData<S>: Send,
impl<'a, S> Sync for TypedJoinContext<'a, S>where
PhantomData<S>: Sync,
impl<'a, S> Unpin for TypedJoinContext<'a, S>where
PhantomData<S>: Unpin,
impl<'a, S> UnsafeUnpin for TypedJoinContext<'a, S>where
PhantomData<S>: UnsafeUnpin,
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