pub enum OnvifError {
NotImplemented,
InvalidArgument(String),
ActionNotSupported,
}Expand description
ONVIF-specific error type that maps to SOAP faults with the ONVIF ter: namespace.
Every into_soap_fault() call produces a detail field containing
xmlns:ter="http://www.onvif.org/ver10/error" as required by the ONVIF spec.
Variants§
NotImplemented
The requested action has not yet been implemented.
InvalidArgument(String)
The caller supplied an invalid argument value.
ActionNotSupported
The device does not support the requested action.
Implementations§
Source§impl OnvifError
impl OnvifError
Sourcepub fn into_soap_fault(self) -> SoapFault
pub fn into_soap_fault(self) -> SoapFault
Convert this error into a SoapFault with an ONVIF-namespaced detail element.
The xmlns:ter declaration is embedded in the detail string because
soap-server’s envelope does not inject it automatically.
Trait Implementations§
Source§impl Debug for OnvifError
impl Debug for OnvifError
Source§impl Display for OnvifError
impl Display for OnvifError
Source§impl Error for OnvifError
impl Error for OnvifError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for OnvifError
impl RefUnwindSafe for OnvifError
impl Send for OnvifError
impl Sync for OnvifError
impl Unpin for OnvifError
impl UnsafeUnpin for OnvifError
impl UnwindSafe for OnvifError
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