pub enum S7ConnectError {
ConnectFail(String),
Lock,
IOError(ErrorKind),
Response {
code: i32,
},
CPU {
code: i32,
},
InvalidInput {
input: String,
},
Send,
Iso,
PduLength(u16),
TryFrom(Vec<u8>, String),
InvalidCpuStatus(u8),
InvalidResponse {
reason: String,
bytes: Vec<u8>,
},
}Variants§
ConnectFail(String)
Lock
IOError(ErrorKind)
Response
CPU
InvalidInput
Send
Iso
PduLength(u16)
TryFrom(Vec<u8>, String)
InvalidCpuStatus(u8)
InvalidResponse
Trait Implementations§
Source§impl Debug for S7ConnectError
impl Debug for S7ConnectError
Source§impl Display for S7ConnectError
impl Display for S7ConnectError
Source§impl Error for S7ConnectError
impl Error for S7ConnectError
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 S7ConnectError
impl RefUnwindSafe for S7ConnectError
impl Send for S7ConnectError
impl Sync for S7ConnectError
impl Unpin for S7ConnectError
impl UnsafeUnpin for S7ConnectError
impl UnwindSafe for S7ConnectError
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