pub struct SocketEventEntry {
pub event: &'static str,
pub invoke: SocketEventFn,
}Expand description
One #[on_socket_event] method, type-erased.
Fields§
§event: &'static strThe event name a client emits.
invoke: SocketEventFnTrait Implementations§
Source§impl Clone for SocketEventEntry
impl Clone for SocketEventEntry
Source§fn clone(&self) -> SocketEventEntry
fn clone(&self) -> SocketEventEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for SocketEventEntry
impl !UnwindSafe for SocketEventEntry
impl Freeze for SocketEventEntry
impl Send for SocketEventEntry
impl Sync for SocketEventEntry
impl Unpin for SocketEventEntry
impl UnsafeUnpin for SocketEventEntry
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