#[non_exhaustive]pub struct DynamicTransportError {
pub transport_name: Cow<'static, str>,
pub transport_type_id: TypeId,
pub error: Box<dyn Error + Send + Sync>,
}Available on crate features
client or server only.Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.transport_name: Cow<'static, str>§transport_type_id: TypeId§error: Box<dyn Error + Send + Sync>Implementations§
Source§impl DynamicTransportError
impl DynamicTransportError
pub fn new<T: Transport<R> + 'static, R: ServiceRole>(e: T::Error) -> Self
Sourcepub fn from_parts(
transport_name: impl Into<Cow<'static, str>>,
transport_type_id: TypeId,
error: Box<dyn Error + Send + Sync>,
) -> Self
pub fn from_parts( transport_name: impl Into<Cow<'static, str>>, transport_type_id: TypeId, error: Box<dyn Error + Send + Sync>, ) -> Self
pub fn downcast<T: Transport<R> + 'static, R: ServiceRole>( self, ) -> Result<T::Error, Self>
pub fn is<T: Transport<R> + 'static, R: ServiceRole>(&self) -> bool
Trait Implementations§
Source§impl Debug for DynamicTransportError
impl Debug for DynamicTransportError
Source§impl Display for DynamicTransportError
impl Display for DynamicTransportError
Source§impl Error for DynamicTransportError
impl Error for DynamicTransportError
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 !RefUnwindSafe for DynamicTransportError
impl !UnwindSafe for DynamicTransportError
impl Freeze for DynamicTransportError
impl Send for DynamicTransportError
impl Sync for DynamicTransportError
impl Unpin for DynamicTransportError
impl UnsafeUnpin for DynamicTransportError
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