pub enum MessageProcessingResult {
Processed,
Forward(Bytes),
Failed(String),
NoAction,
}Expand description
WebSocket message processing result
Variants§
Processed
Message was processed successfully
Forward(Bytes)
Message should be forwarded to the application
Failed(String)
Message processing failed
NoAction
No action needed (e.g., for ping/pong)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for MessageProcessingResult
impl RefUnwindSafe for MessageProcessingResult
impl Send for MessageProcessingResult
impl Sync for MessageProcessingResult
impl Unpin for MessageProcessingResult
impl UnsafeUnpin for MessageProcessingResult
impl UnwindSafe for MessageProcessingResult
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