pub struct BridgeError { /* private fields */ }Implementations§
Source§impl BridgeError
impl BridgeError
pub fn new(kind: ErrorKind, message: impl Into<String>) -> BridgeError
pub fn transport(message: impl Into<String>) -> BridgeError
pub fn timeout(message: impl Into<String>) -> BridgeError
pub fn protocol(message: impl Into<String>) -> BridgeError
pub fn application(message: impl Into<String>) -> BridgeError
pub fn no_clients(message: impl Into<String>) -> BridgeError
pub fn kind(&self) -> ErrorKind
pub fn message(&self) -> &str
Trait Implementations§
Source§impl Clone for BridgeError
impl Clone for BridgeError
Source§fn clone(&self) -> BridgeError
fn clone(&self) -> BridgeError
Returns a duplicate of the value. Read more
1.0.0 · 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 BridgeError
impl Debug for BridgeError
Source§impl Display for BridgeError
impl Display for BridgeError
Source§impl From<Error> for BridgeError
impl From<Error> for BridgeError
Source§fn from(e: Error) -> BridgeError
fn from(e: Error) -> BridgeError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BridgeError
impl RefUnwindSafe for BridgeError
impl Send for BridgeError
impl Sync for BridgeError
impl Unpin for BridgeError
impl UnsafeUnpin for BridgeError
impl UnwindSafe for BridgeError
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