pub enum ApiBridgeError {
UnsupportedProtocol {
protocol: String,
},
InvalidRequest {
message: String,
},
InvalidResponse {
message: String,
},
Conversion {
message: String,
},
Adapter {
message: String,
},
}Variants§
Implementations§
Source§impl ApiBridgeError
impl ApiBridgeError
pub fn unsupported_protocol(protocol: impl Into<String>) -> Self
pub fn invalid_request(message: impl Into<String>) -> Self
pub fn invalid_response(message: impl Into<String>) -> Self
pub fn conversion(message: impl Into<String>) -> Self
pub fn adapter(message: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ApiBridgeError
impl Clone for ApiBridgeError
Source§fn clone(&self) -> ApiBridgeError
fn clone(&self) -> ApiBridgeError
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 ApiBridgeError
impl Debug for ApiBridgeError
Source§impl Display for ApiBridgeError
impl Display for ApiBridgeError
impl Eq for ApiBridgeError
Source§impl Error for ApiBridgeError
impl Error for ApiBridgeError
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()
Source§impl PartialEq for ApiBridgeError
impl PartialEq for ApiBridgeError
Source§fn eq(&self, other: &ApiBridgeError) -> bool
fn eq(&self, other: &ApiBridgeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ApiBridgeError
Auto Trait Implementations§
impl Freeze for ApiBridgeError
impl RefUnwindSafe for ApiBridgeError
impl Send for ApiBridgeError
impl Sync for ApiBridgeError
impl Unpin for ApiBridgeError
impl UnsafeUnpin for ApiBridgeError
impl UnwindSafe for ApiBridgeError
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