pub enum ClientState {
Calling,
Trying,
Proceeding,
Completed,
Accepted,
Terminated,
}Expand description
The state of a client transaction.
Calling belongs to the INVITE machine and Trying to the non-INVITE one; the rest are
shared. Accepted is RFC 6026’s addition and exists so that a retransmitted 2xx — which
forking proxies produce as a matter of course — still has a transaction to arrive at.
Variants§
Calling
INVITE: the request has gone out and nothing has come back.
Trying
Non-INVITE: the request has gone out and nothing has come back.
Proceeding
A provisional response has arrived.
Completed
A final response has arrived; waiting out retransmissions.
Accepted
RFC 6026: a 2xx has arrived and more may follow.
Terminated
Over.
Implementations§
Source§impl ClientState
impl ClientState
Sourcepub fn is_terminated(self) -> bool
pub fn is_terminated(self) -> bool
Whether the transaction has finished and can be dropped.
Trait Implementations§
Source§impl Clone for ClientState
impl Clone for ClientState
Source§fn clone(&self) -> ClientState
fn clone(&self) -> ClientState
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 ClientState
impl Debug for ClientState
Source§impl PartialEq for ClientState
impl PartialEq for ClientState
Source§fn eq(&self, other: &ClientState) -> bool
fn eq(&self, other: &ClientState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ClientState
impl Eq for ClientState
impl StructuralPartialEq for ClientState
Auto Trait Implementations§
impl Freeze for ClientState
impl RefUnwindSafe for ClientState
impl Send for ClientState
impl Sync for ClientState
impl Unpin for ClientState
impl UnsafeUnpin for ClientState
impl UnwindSafe for ClientState
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