#[non_exhaustive]pub enum ServerEvent {
RequestAccepted {
method: Method,
cseq: u32,
state: SessionState,
},
MethodNotValid {
method: Method,
state: SessionState,
},
SessionSetup {
session_id: String,
transport: Transport,
},
}Expand description
An event produced by ServerSession::handle_request.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RequestAccepted
A request was accepted and the state machine advanced (2xx sent).
Fields
§
state: SessionStateThe state after handling.
MethodNotValid
A request was rejected in the current state; a 455 was returned.
Fields
§
state: SessionStateThe state the request was rejected in.
SessionSetup
A SETUP completed and a session id was allocated / reused.
Trait Implementations§
Source§impl Clone for ServerEvent
impl Clone for ServerEvent
Source§fn clone(&self) -> ServerEvent
fn clone(&self) -> ServerEvent
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 moreSource§impl Debug for ServerEvent
impl Debug for ServerEvent
impl Eq for ServerEvent
Source§impl PartialEq for ServerEvent
impl PartialEq for ServerEvent
Source§fn eq(&self, other: &ServerEvent) -> bool
fn eq(&self, other: &ServerEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ServerEvent
Auto Trait Implementations§
impl Freeze for ServerEvent
impl RefUnwindSafe for ServerEvent
impl Send for ServerEvent
impl Sync for ServerEvent
impl Unpin for ServerEvent
impl UnsafeUnpin for ServerEvent
impl UnwindSafe for ServerEvent
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