Struct ToClient
pub struct ToClient<T> { /* private fields */ }Expand description
The token of a payload of T a server sends a client. Only the
clientbound send service takes it, so sending it the other way does not
compile.
Implementations§
§impl<T> ToClient<T>
impl<T> ToClient<T>
pub const fn phase(&self) -> PayloadPhase
pub const fn phase(&self) -> PayloadPhase
The phases the payload is declared for.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ToClient<T>
impl<T> RefUnwindSafe for ToClient<T>
impl<T> Send for ToClient<T>
impl<T> Sync for ToClient<T>
impl<T> Unpin for ToClient<T>
impl<T> UnsafeUnpin for ToClient<T>
impl<T> UnwindSafe for ToClient<T>
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