#[non_exhaustive]pub enum ClientEvent {
Response {
cseq: u32,
method: Method,
status: StatusCode,
body: Vec<u8>,
},
AuthRetry {
method: Method,
cseq: u32,
request: Vec<u8>,
},
MediaData {
channel: u8,
data: Vec<u8>,
},
}Expand description
An event produced by ClientSession::handle_data.
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.
Response
A response was correlated to a request and the state machine updated.
Fields
§
status: StatusCodeThe response status code.
AuthRetry
The engine transparently re-sent a request with an Authorization
header after a 401. The caller MUST write request to the socket.
Fields
MediaData
Interleaved binary media data (RFC 2326 §10.12).
Trait Implementations§
Source§impl Clone for ClientEvent
impl Clone for ClientEvent
Source§fn clone(&self) -> ClientEvent
fn clone(&self) -> ClientEvent
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 ClientEvent
impl Debug for ClientEvent
impl Eq for ClientEvent
Source§impl PartialEq for ClientEvent
impl PartialEq for ClientEvent
impl StructuralPartialEq for ClientEvent
Auto Trait Implementations§
impl Freeze for ClientEvent
impl RefUnwindSafe for ClientEvent
impl Send for ClientEvent
impl Sync for ClientEvent
impl Unpin for ClientEvent
impl UnsafeUnpin for ClientEvent
impl UnwindSafe for ClientEvent
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