#[non_exhaustive]pub enum GetParameterError {
NulError(NulError),
CannotGetClient,
NoServer,
UnknownParameter(String),
StructureMismatch(String, &'static str),
Other(i32),
}
Available on crate feature
interface
only.Expand description
Errors that can happen when getting a parameter.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NulError(NulError)
Could not make a c-compatible string. This is a bug.
CannotGetClient
Unexpected error
NoServer
No server.
UnknownParameter(String)
Unknown parameter.
StructureMismatch(String, &'static str)
Structure mismatch.
Other(i32)
An unknown error code occured.
Trait Implementations§
source§impl Clone for GetParameterError
impl Clone for GetParameterError
source§fn clone(&self) -> GetParameterError
fn clone(&self) -> GetParameterError
Returns a copy of the value. Read more
1.0.0 · 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 GetParameterError
impl Debug for GetParameterError
source§impl Display for GetParameterError
impl Display for GetParameterError
source§impl Error for GetParameterError
impl Error for GetParameterError
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()
Auto Trait Implementations§
impl RefUnwindSafe for GetParameterError
impl Send for GetParameterError
impl Sync for GetParameterError
impl Unpin for GetParameterError
impl UnwindSafe for GetParameterError
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