Struct janus_plugin::JanusError [−][src]
pub struct JanusError { pub code: i32, }
An error emitted by the Janus core in response to a plugin pushing an event.
Fields
code: i32
Methods
impl JanusError
[src]
impl JanusError
pub fn to_cstr(&self) -> &'static CStr
[src]
pub fn to_cstr(&self) -> &'static CStr
Returns Janus's description text for this error.
pub fn from(val: i32) -> JanusResult
[src]
pub fn from(val: i32) -> JanusResult
Converts a Janus result code to either success or a potential error.
Trait Implementations
impl Debug for JanusError
[src]
impl Debug for JanusError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for JanusError
[src]
impl Clone for JanusError
fn clone(&self) -> JanusError
[src]
fn clone(&self) -> JanusError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for JanusError
[src]
impl Copy for JanusError
impl Error for JanusError
[src]
impl Error for JanusError
fn description(&self) -> &'static str
[src]
fn description(&self) -> &'static str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
1.0.0
[src]The lower-level cause of this error, if any. Read more
impl Display for JanusError
[src]
impl Display for JanusError
Auto Trait Implementations
impl Send for JanusError
impl Send for JanusError
impl Sync for JanusError
impl Sync for JanusError