pub enum ServerError {
Show 24 variants
Bind(Error),
Io(Error),
Protocol(CodecError),
InvalidConfig(String),
PhoneXml(PhoneXmlError),
DeviceNotConnected(DeviceId),
UnknownCall(CallId),
UnknownBlfButton {
device: DeviceId,
instance: u32,
},
InvalidCallTransaction {
call_id: CallId,
operation: &'static str,
state: CallState,
},
Stopped,
CommandQueueFull,
CommandWrite(String),
CommandAcknowledgementTimeout,
MediaRequestIdentityExhausted,
SessionGenerationExhausted,
InvalidMulticastMedia(&'static str),
UnsupportedMulticastCodec,
InvalidMultimediaReceive(&'static str),
UnsupportedMultimediaReceive,
InvalidMultimediaTransmit(&'static str),
UnsupportedMultimediaTransmit,
InvalidMultimediaTransmitControl(&'static str),
StaleMultimediaTransmitControl {
call_id: CallId,
passthrough_party_id: PassthroughPartyId,
},
InvalidStationCommand {
message: &'static str,
},
}Expand description
Failure returned by server construction, command submission, session I/O, or stateful command validation.
Queue-admission failures do not imply that an earlier command failed.
Self::CommandWrite and Self::CommandAcknowledgementTimeout are
specific to ServerHandle::send_confirmed; protocol-level media outcomes
instead arrive through Event.
Variants§
Bind(Error)
Io(Error)
Protocol(CodecError)
InvalidConfig(String)
PhoneXml(PhoneXmlError)
DeviceNotConnected(DeviceId)
UnknownCall(CallId)
UnknownBlfButton
InvalidCallTransaction
Stopped
CommandQueueFull
CommandWrite(String)
CommandAcknowledgementTimeout
MediaRequestIdentityExhausted
SessionGenerationExhausted
InvalidMulticastMedia(&'static str)
UnsupportedMulticastCodec
InvalidMultimediaReceive(&'static str)
UnsupportedMultimediaReceive
InvalidMultimediaTransmit(&'static str)
UnsupportedMultimediaTransmit
InvalidMultimediaTransmitControl(&'static str)
StaleMultimediaTransmitControl
InvalidStationCommand
Trait Implementations§
Source§impl Debug for ServerError
impl Debug for ServerError
Source§impl Display for ServerError
impl Display for ServerError
Source§impl Error for ServerError
impl Error for ServerError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<CodecError> for ServerError
impl From<CodecError> for ServerError
Source§fn from(source: CodecError) -> Self
fn from(source: CodecError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ServerError
impl From<Error> for ServerError
Source§impl From<PhoneXmlError> for ServerError
impl From<PhoneXmlError> for ServerError
Source§fn from(source: PhoneXmlError) -> Self
fn from(source: PhoneXmlError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ServerError
impl !UnwindSafe for ServerError
impl Freeze for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl UnsafeUnpin for ServerError
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