pub enum NtError {
ConnectionError(String),
WebsocketError(String),
MessagePackError(String),
JsonError(String),
SendError(String),
IoError(String),
TopicNotFound(String),
BinaryFrameError,
LockError(String),
Other(String),
NeedReconnect,
}
Expand description
Custom error types for NetworkTables operations
Variants§
ConnectionError(String)
Error during connection establishment
WebsocketError(String)
Error with websocket communication
MessagePackError(String)
Error with MessagePack encoding/decoding
JsonError(String)
Error with JSON serialization/deserialization
SendError(String)
Error with message sending
IoError(String)
Generic IO error
TopicNotFound(String)
Topic not found
BinaryFrameError
Binary frame parsing error
LockError(String)
Lock acquisition error
Other(String)
Other errors
NeedReconnect
Trait Implementations§
Source§impl Error for NtError
impl Error for NtError
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()
Auto Trait Implementations§
impl Freeze for NtError
impl RefUnwindSafe for NtError
impl Send for NtError
impl Sync for NtError
impl Unpin for NtError
impl UnwindSafe for NtError
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