pub struct CodexConnectorError {
pub kind: ConnectorErrorKind,
pub message: String,
}Expand description
Codex / codex connector failure.
Fields§
§kind: ConnectorErrorKindClosed kind.
message: StringSafe message.
Implementations§
Source§impl CodexConnectorError
impl CodexConnectorError
Sourcepub fn configuration(msg: impl Into<String>) -> Self
pub fn configuration(msg: impl Into<String>) -> Self
Configuration invalid.
Sourcepub fn connection(msg: impl Into<String>) -> Self
pub fn connection(msg: impl Into<String>) -> Self
Process spawn / I/O failure.
Sourcepub fn into_connector_error(self) -> ConnectorError
pub fn into_connector_error(self) -> ConnectorError
Map to contracts ConnectorError.
Trait Implementations§
Source§impl Clone for CodexConnectorError
impl Clone for CodexConnectorError
Source§fn clone(&self) -> CodexConnectorError
fn clone(&self) -> CodexConnectorError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CodexConnectorError
impl Debug for CodexConnectorError
Source§impl Display for CodexConnectorError
impl Display for CodexConnectorError
impl Eq for CodexConnectorError
Source§impl Error for CodexConnectorError
impl Error for CodexConnectorError
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()
Source§impl From<CodexConnectorError> for ConnectorError
impl From<CodexConnectorError> for ConnectorError
Source§fn from(e: CodexConnectorError) -> Self
fn from(e: CodexConnectorError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CodexConnectorError
impl PartialEq for CodexConnectorError
impl StructuralPartialEq for CodexConnectorError
Auto Trait Implementations§
impl Freeze for CodexConnectorError
impl RefUnwindSafe for CodexConnectorError
impl Send for CodexConnectorError
impl Sync for CodexConnectorError
impl Unpin for CodexConnectorError
impl UnsafeUnpin for CodexConnectorError
impl UnwindSafe for CodexConnectorError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.