#[repr(i32)]pub enum ErrorCode {
InvalidArgument = -1,
InvalidState = -2,
Timeout = -3,
Cancelled = -4,
TransportError = -5,
NegotiationFailed = -6,
ExtensionUnavailable = -7,
PolicyDenied = -8,
InternalError = -9,
ResourceExhausted = -10,
}Expand description
Canonical error codes for stdio_bus operations
Variants§
InvalidArgument = -1
Invalid argument provided
InvalidState = -2
Operation not valid in current state
Timeout = -3
Request timed out
Cancelled = -4
Request was cancelled
TransportError = -5
Transport-level failure
NegotiationFailed = -6
Protocol negotiation failed
Required extension not available
PolicyDenied = -8
Operation denied by policy
InternalError = -9
Internal error
ResourceExhausted = -10
Resource exhausted
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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