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),
}Expand description
iSCPのエラー型です。
Variants§
Connect(String)
ConnectionClosed(String)
TimeOut
StreamNotFound
Unexpected(String)
Encode(String)
MalformedMessage(String)
FailedMessage
InvalidValue(String)
MaxDataPointCount
MaxSequenceNumber
Certificate(Error)
CertificateLoad(String)
Implementations§
source§impl 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§
source§impl Error for Error
impl Error for Error
source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ConnectResponse> for Error
impl From<ConnectResponse> for Error
source§fn from(m: ConnectResponse) -> Error
fn from(m: ConnectResponse) -> Error
Converts to this type from the input type.
source§impl From<Disconnect> for Error
impl From<Disconnect> for Error
source§fn from(m: Disconnect) -> Error
fn from(m: Disconnect) -> Error
Converts to this type from the input type.
source§impl From<DownstreamChunkResult> for Error
impl From<DownstreamChunkResult> for Error
source§fn from(m: DownstreamChunkResult) -> Error
fn from(m: DownstreamChunkResult) -> Error
Converts to this type from the input type.
source§impl From<DownstreamCloseResponse> for Error
impl From<DownstreamCloseResponse> for Error
source§fn from(m: DownstreamCloseResponse) -> Error
fn from(m: DownstreamCloseResponse) -> Error
Converts to this type from the input type.
source§impl From<DownstreamMetadataAck> for Error
impl From<DownstreamMetadataAck> for Error
source§fn from(m: DownstreamMetadataAck) -> Error
fn from(m: DownstreamMetadataAck) -> Error
Converts to this type from the input type.
source§impl From<DownstreamOpenResponse> for Error
impl From<DownstreamOpenResponse> for Error
source§fn from(m: DownstreamOpenResponse) -> Error
fn from(m: DownstreamOpenResponse) -> Error
Converts to this type from the input type.
source§impl From<DownstreamResumeResponse> for Error
impl From<DownstreamResumeResponse> for Error
source§fn from(m: DownstreamResumeResponse) -> Error
fn from(m: DownstreamResumeResponse) -> Error
Converts to this type from the input type.
source§impl From<UpstreamChunkResult> for Error
impl From<UpstreamChunkResult> for Error
source§fn from(m: UpstreamChunkResult) -> Error
fn from(m: UpstreamChunkResult) -> Error
Converts to this type from the input type.
source§impl From<UpstreamCloseResponse> for Error
impl From<UpstreamCloseResponse> for Error
source§fn from(m: UpstreamCloseResponse) -> Error
fn from(m: UpstreamCloseResponse) -> Error
Converts to this type from the input type.
source§impl From<UpstreamMetadataAck> for Error
impl From<UpstreamMetadataAck> for Error
source§fn from(m: UpstreamMetadataAck) -> Error
fn from(m: UpstreamMetadataAck) -> Error
Converts to this type from the input type.
source§impl From<UpstreamOpenResponse> for Error
impl From<UpstreamOpenResponse> for Error
source§fn from(m: UpstreamOpenResponse) -> Error
fn from(m: UpstreamOpenResponse) -> Error
Converts to this type from the input type.
source§impl From<UpstreamResumeResponse> for Error
impl From<UpstreamResumeResponse> for Error
source§fn from(m: UpstreamResumeResponse) -> Error
fn from(m: UpstreamResumeResponse) -> Error
Converts to this type from the input type.
source§impl From<WriteError> for Error
impl From<WriteError> for Error
source§fn from(e: WriteError) -> Self
fn from(e: WriteError) -> Self
Converts to this type from the input type.
source§impl PartialEq for Error
impl PartialEq for Error
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§
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