#[repr(u32)]pub enum switch_status_t {
Show 26 variants
SWITCH_STATUS_SUCCESS = 0,
SWITCH_STATUS_FALSE = 1,
SWITCH_STATUS_TIMEOUT = 2,
SWITCH_STATUS_RESTART = 3,
SWITCH_STATUS_INTR = 4,
SWITCH_STATUS_NOTIMPL = 5,
SWITCH_STATUS_MEMERR = 6,
SWITCH_STATUS_NOOP = 7,
SWITCH_STATUS_RESAMPLE = 8,
SWITCH_STATUS_GENERR = 9,
SWITCH_STATUS_INUSE = 10,
SWITCH_STATUS_BREAK = 11,
SWITCH_STATUS_SOCKERR = 12,
SWITCH_STATUS_MORE_DATA = 13,
SWITCH_STATUS_NOTFOUND = 14,
SWITCH_STATUS_UNLOAD = 15,
SWITCH_STATUS_NOUNLOAD = 16,
SWITCH_STATUS_IGNORE = 17,
SWITCH_STATUS_TOO_SMALL = 18,
SWITCH_STATUS_FOUND = 19,
SWITCH_STATUS_CONTINUE = 20,
SWITCH_STATUS_TERM = 21,
SWITCH_STATUS_NOT_INITALIZED = 22,
SWITCH_STATUS_TOO_LATE = 23,
SWITCH_STATUS_XBREAK = 35,
SWITCH_STATUS_WINBREAK = 730_035,
}Expand description
\enum switch_status_t \brief Common return values
SWITCH_STATUS_SUCCESS - General Success (common return value for most functions) SWITCH_STATUS_FALSE - General Falsehood SWITCH_STATUS_TIMEOUT - A Timeout has occured SWITCH_STATUS_RESTART - An indication to restart the previous operation SWITCH_STATUS_TERM - An indication to terminate SWITCH_STATUS_NOTIMPL - An indication that requested resource is not impelemented SWITCH_STATUS_MEMERR - General memory error SWITCH_STATUS_NOOP - NOTHING SWITCH_STATUS_RESAMPLE - An indication that a resample has occured SWITCH_STATUS_GENERR - A general Error SWITCH_STATUS_INUSE - An indication that requested resource is in use SWITCH_STATUS_BREAK - A non-fatal break of an operation SWITCH_STATUS_SOCKERR - A socket error SWITCH_STATUS_MORE_DATA - Need More Data SWITCH_STATUS_NOTFOUND - Not Found SWITCH_STATUS_UNLOAD - Unload SWITCH_STATUS_NOUNLOAD - Never Unload
Variants§
SWITCH_STATUS_SUCCESS = 0
SWITCH_STATUS_FALSE = 1
SWITCH_STATUS_TIMEOUT = 2
SWITCH_STATUS_RESTART = 3
SWITCH_STATUS_INTR = 4
SWITCH_STATUS_NOTIMPL = 5
SWITCH_STATUS_MEMERR = 6
SWITCH_STATUS_NOOP = 7
SWITCH_STATUS_RESAMPLE = 8
SWITCH_STATUS_GENERR = 9
SWITCH_STATUS_INUSE = 10
SWITCH_STATUS_BREAK = 11
SWITCH_STATUS_SOCKERR = 12
SWITCH_STATUS_MORE_DATA = 13
SWITCH_STATUS_NOTFOUND = 14
SWITCH_STATUS_UNLOAD = 15
SWITCH_STATUS_NOUNLOAD = 16
SWITCH_STATUS_IGNORE = 17
SWITCH_STATUS_TOO_SMALL = 18
SWITCH_STATUS_FOUND = 19
SWITCH_STATUS_CONTINUE = 20
SWITCH_STATUS_TERM = 21
SWITCH_STATUS_NOT_INITALIZED = 22
SWITCH_STATUS_TOO_LATE = 23
SWITCH_STATUS_XBREAK = 35
SWITCH_STATUS_WINBREAK = 730_035
Trait Implementations§
Source§impl Clone for switch_status_t
impl Clone for switch_status_t
Source§fn clone(&self) -> switch_status_t
fn clone(&self) -> switch_status_t
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 switch_status_t
impl Debug for switch_status_t
Source§impl Hash for switch_status_t
impl Hash for switch_status_t
Source§impl PartialEq for switch_status_t
impl PartialEq for switch_status_t
Source§fn eq(&self, other: &switch_status_t) -> bool
fn eq(&self, other: &switch_status_t) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for switch_status_t
impl Eq for switch_status_t
impl StructuralPartialEq for switch_status_t
Auto Trait Implementations§
impl Freeze for switch_status_t
impl RefUnwindSafe for switch_status_t
impl Send for switch_status_t
impl Sync for switch_status_t
impl Unpin for switch_status_t
impl UnsafeUnpin for switch_status_t
impl UnwindSafe for switch_status_t
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