pub enum ServerState {
Trying,
Proceeding,
Completed,
Confirmed,
Accepted,
Terminated,
}Expand description
The state of a server transaction.
Variants§
Trying
Non-INVITE: the request is with the transaction user and nothing has been sent.
Proceeding
A provisional response has been sent, or an INVITE is being processed.
Completed
A final response has been sent; waiting out request retransmissions, or an ACK.
Confirmed
INVITE: the ACK arrived; waiting out its retransmissions.
Accepted
RFC 6026: a 2xx was sent and the ACK belongs to the transaction user.
Terminated
Over.
Implementations§
Source§impl ServerState
impl ServerState
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 ServerState
impl Clone for ServerState
Source§fn clone(&self) -> ServerState
fn clone(&self) -> ServerState
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 ServerState
impl Debug for ServerState
Source§impl PartialEq for ServerState
impl PartialEq for ServerState
Source§fn eq(&self, other: &ServerState) -> bool
fn eq(&self, other: &ServerState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ServerState
impl Eq for ServerState
impl StructuralPartialEq for ServerState
Auto Trait Implementations§
impl Freeze for ServerState
impl RefUnwindSafe for ServerState
impl Send for ServerState
impl Sync for ServerState
impl Unpin for ServerState
impl UnsafeUnpin for ServerState
impl UnwindSafe for ServerState
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