pub enum TransportError {
Unsupported,
PermissionDenied,
Invalid(String),
NotFound,
Cancelled,
Io(String),
BufferOverflow {
needed: usize,
capacity: usize,
},
Codec(CodecError),
Status(i32),
Internal(String),
}Expand description
Transport-layer error decoupled from any specific FFI status table or runtime crate.
Variants§
Unsupported
Service or method is not supported on the active transport or platform.
PermissionDenied
Caller lacks permission for the requested capability or operation.
Invalid(String)
Caller supplied invalid arguments or a malformed payload.
NotFound
Requested resource, handle, or key was not found.
Cancelled
Operation was cancelled (user dismissal, surface teardown, or hot reload).
Io(String)
Underlying I/O or link-layer failure.
BufferOverflow
Payload exceeded the configured or negotiated buffer capacity.
Codec(CodecError)
Binary codec serialization or deserialization failed.
Status(i32)
Transport-specific non-zero status code (for raw foreign/C-ABI errors).
Internal(String)
Internal transport or peer failure.
Trait Implementations§
Source§impl Clone for TransportError
impl Clone for TransportError
Source§impl Debug for TransportError
impl Debug for TransportError
Source§impl Display for TransportError
impl Display for TransportError
impl Eq for TransportError
Source§impl Error for TransportError
impl Error for TransportError
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 From<CodecError> for TransportError
impl From<CodecError> for TransportError
Source§fn from(err: CodecError) -> Self
fn from(err: CodecError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for TransportError
impl From<Error> for TransportError
Source§impl PartialEq for TransportError
impl PartialEq for TransportError
impl StructuralPartialEq for TransportError
Auto Trait Implementations§
impl Forget for TransportError
impl Freeze for TransportError
impl Move for TransportError
impl RefUnwindSafe for TransportError
impl Send for TransportError
impl Sync for TransportErrorwhere
RawVecInner: Sync,
impl Unpin for TransportError
impl UnsafeUnpin for TransportError
impl UnwindSafe for TransportError
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