pub enum Action<E> {
Send(Vec<u8>),
Emit(E),
}Expand description
Actions that connections can request from the runtime. Used by the Connection trait to return instructions to the connection manager.
Variants§
Send(Vec<u8>)
Send the given bytes to the connection’s remote address
Emit(E)
Emit an event to the user
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for Action<E>where
E: Freeze,
impl<E> RefUnwindSafe for Action<E>where
E: RefUnwindSafe,
impl<E> Send for Action<E>where
E: Send,
impl<E> Sync for Action<E>where
E: Sync,
impl<E> Unpin for Action<E>where
E: Unpin,
impl<E> UnwindSafe for Action<E>where
E: UnwindSafe,
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