pub struct ConnCtx<A: Actor> { /* private fields */ }Implementations§
Source§impl<A: Actor> ConnCtx<A>
impl<A: Actor> ConnCtx<A>
pub fn id(&self) -> &str
pub fn is_hibernatable(&self) -> bool
pub fn params(&self) -> Result<A::ConnParams>
pub fn state(&self) -> Result<A::ConnState>
pub fn set_state(&self, state: &A::ConnState) -> Result<()>
pub fn send<E: Serialize>(&self, name: &str, event: &E) -> Result<()>
pub async fn disconnect(&self, reason: Option<&str>) -> Result<()>
pub fn inner(&self) -> &ConnHandle
pub fn into_inner(self) -> ConnHandle
Trait Implementations§
Source§impl<A: Actor> From<ConnHandle> for ConnCtx<A>
impl<A: Actor> From<ConnHandle> for ConnCtx<A>
Source§fn from(value: ConnHandle) -> Self
fn from(value: ConnHandle) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<A> !RefUnwindSafe for ConnCtx<A>
impl<A> !UnwindSafe for ConnCtx<A>
impl<A> Freeze for ConnCtx<A>
impl<A> Send for ConnCtx<A>
impl<A> Sync for ConnCtx<A>
impl<A> Unpin for ConnCtx<A>
impl<A> UnsafeUnpin for ConnCtx<A>
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