Struct HandleOutcome
pub struct HandleOutcome<'a> {
pub event: Option<ClientEvent<'a>>,
pub response: Response,
}Expand description
Result of processing an incoming packet.
Fields§
§event: Option<ClientEvent<'a>>Event for the application, if any.
response: ResponseResponse packet that the caller must send, if any.
Implementations§
§impl<'a> HandleOutcome<'a>
impl<'a> HandleOutcome<'a>
const fn event(event: ClientEvent<'a>) -> Self
const fn response(response: Response) -> Self
const fn event_and_response(event: ClientEvent<'a>, response: Response) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for HandleOutcome<'a>
impl<'a> RefUnwindSafe for HandleOutcome<'a>
impl<'a> Send for HandleOutcome<'a>
impl<'a> Sync for HandleOutcome<'a>
impl<'a> Unpin for HandleOutcome<'a>
impl<'a> UnwindSafe for HandleOutcome<'a>
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