pub enum Error {
Show 13 variants
Connect(String),
ConnectionClosed(String),
TimeOut,
StreamNotFound,
Unexpected(String),
Encode(String),
MalformedMessage(String),
FailedMessage {
code: ResultCode,
detail: String,
},
InvalidValue(String),
MaxDataPointCount,
MaxSequenceNumber,
Certificate(Error),
CertificateLoad(String),
}Variants
Connect(String)
ConnectionClosed(String)
TimeOut
StreamNotFound
Unexpected(String)
Encode(String)
MalformedMessage(String)
FailedMessage
InvalidValue(String)
MaxDataPointCount
MaxSequenceNumber
Certificate(Error)
CertificateLoad(String)
Implementations
sourceimpl Error
impl Error
pub fn unexpected<T: Display>(s: T) -> Self
pub fn invalid_value<T: Display>(s: T) -> Self
pub fn failed_message<T: Display>(code: ResultCode, s: T) -> Self
pub fn connect<T: Display>(s: T) -> Self
pub fn encode<T: ToString>(s: T) -> Self
pub fn malformed_message<T: ToString>(s: T) -> Self
Trait Implementations
sourceimpl Error for Error
impl Error for Error
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<ConnectResponse> for Error
impl From<ConnectResponse> for Error
sourcefn from(m: ConnectResponse) -> Error
fn from(m: ConnectResponse) -> Error
Converts to this type from the input type.
sourceimpl From<Disconnect> for Error
impl From<Disconnect> for Error
sourcefn from(m: Disconnect) -> Error
fn from(m: Disconnect) -> Error
Converts to this type from the input type.
sourceimpl From<DownstreamChunkResult> for Error
impl From<DownstreamChunkResult> for Error
sourcefn from(m: DownstreamChunkResult) -> Error
fn from(m: DownstreamChunkResult) -> Error
Converts to this type from the input type.
sourceimpl From<DownstreamCloseResponse> for Error
impl From<DownstreamCloseResponse> for Error
sourcefn from(m: DownstreamCloseResponse) -> Error
fn from(m: DownstreamCloseResponse) -> Error
Converts to this type from the input type.
sourceimpl From<DownstreamMetadataAck> for Error
impl From<DownstreamMetadataAck> for Error
sourcefn from(m: DownstreamMetadataAck) -> Error
fn from(m: DownstreamMetadataAck) -> Error
Converts to this type from the input type.
sourceimpl From<DownstreamOpenResponse> for Error
impl From<DownstreamOpenResponse> for Error
sourcefn from(m: DownstreamOpenResponse) -> Error
fn from(m: DownstreamOpenResponse) -> Error
Converts to this type from the input type.
sourceimpl From<DownstreamResumeResponse> for Error
impl From<DownstreamResumeResponse> for Error
sourcefn from(m: DownstreamResumeResponse) -> Error
fn from(m: DownstreamResumeResponse) -> Error
Converts to this type from the input type.
sourceimpl From<OutOfRangeError> for Error
impl From<OutOfRangeError> for Error
sourcefn from(e: OutOfRangeError) -> Self
fn from(e: OutOfRangeError) -> Self
Converts to this type from the input type.
sourceimpl From<UpstreamChunkResult> for Error
impl From<UpstreamChunkResult> for Error
sourcefn from(m: UpstreamChunkResult) -> Error
fn from(m: UpstreamChunkResult) -> Error
Converts to this type from the input type.
sourceimpl From<UpstreamCloseResponse> for Error
impl From<UpstreamCloseResponse> for Error
sourcefn from(m: UpstreamCloseResponse) -> Error
fn from(m: UpstreamCloseResponse) -> Error
Converts to this type from the input type.
sourceimpl From<UpstreamMetadataAck> for Error
impl From<UpstreamMetadataAck> for Error
sourcefn from(m: UpstreamMetadataAck) -> Error
fn from(m: UpstreamMetadataAck) -> Error
Converts to this type from the input type.
sourceimpl From<UpstreamOpenResponse> for Error
impl From<UpstreamOpenResponse> for Error
sourcefn from(m: UpstreamOpenResponse) -> Error
fn from(m: UpstreamOpenResponse) -> Error
Converts to this type from the input type.
sourceimpl From<UpstreamResumeResponse> for Error
impl From<UpstreamResumeResponse> for Error
sourcefn from(m: UpstreamResumeResponse) -> Error
fn from(m: UpstreamResumeResponse) -> Error
Converts to this type from the input type.
sourceimpl From<WriteError> for Error
impl From<WriteError> for Error
sourcefn from(e: WriteError) -> Self
fn from(e: WriteError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
impl<T> Any for Twhere
T: Any + ?Sized,
impl<T> Any for Twhere
T: Any + ?Sized,
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
TODO: once 1.33.0 is the minimum supported compiler version, remove
Any::type_id_compat and use StdAny::type_id instead.
https://github.com/rust-lang/rust/issues/27745 Read more
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