Struct ToServer
pub struct ToServer<T> { /* private fields */ }Expand description
The token of a payload of T a client sends its server. Only the
serverbound send service takes it, so sending it the other way does not
compile.
Implementations§
§impl<T> ToServer<T>
impl<T> ToServer<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 ToServer<T>
impl<T> RefUnwindSafe for ToServer<T>
impl<T> Send for ToServer<T>
impl<T> Sync for ToServer<T>
impl<T> Unpin for ToServer<T>
impl<T> UnsafeUnpin for ToServer<T>
impl<T> UnwindSafe for ToServer<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