Enum segment_rs::connection::ConnectionError
source · [−]pub enum ConnectionError {
TCPError(Error),
Eof,
FrameError(ParseFrameError),
}
Expand description
Represents a connection error
Variants
TCPError(Error)
Represents a TCP connection error
Eof
Occurs when the connection is prematurely closed by the server
FrameError(ParseFrameError)
Occurs when there is an error in parsing the frame
Trait Implementations
sourceimpl Debug for ConnectionError
impl Debug for ConnectionError
sourceimpl Display for ConnectionError
impl Display for ConnectionError
sourceimpl Error for ConnectionError
impl Error for ConnectionError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<ConnectionError> for CommandError
impl From<ConnectionError> for CommandError
sourcefn from(source: ConnectionError) -> Self
fn from(source: ConnectionError) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for ConnectionError
impl From<Error> for ConnectionError
sourceimpl From<ParseFrameError> for ConnectionError
impl From<ParseFrameError> for ConnectionError
sourcefn from(source: ParseFrameError) -> Self
fn from(source: ParseFrameError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for ConnectionError
impl Send for ConnectionError
impl Sync for ConnectionError
impl Unpin for ConnectionError
impl !UnwindSafe for ConnectionError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more