pub enum BindError {
UnsupportedVersion {
interface: &'static str,
requested: u32,
available: u32,
},
NotPresent(&'static str),
}Expand description
An error that occurs when a binding a global fails.
Variants§
UnsupportedVersion
The requested version of the global is not supported.
Fields
§
requested: u32The lowest version that was requested by the caller, must be greater than Self::UnsupportedVersion::requested.
§
available: u32The actual verison that was available on the server, must be less than Self::UnsupportedVersion::requested.
NotPresent(&'static str)
The requested global was not found in the registry.
Trait Implementations§
Source§impl Error for BindError
impl Error for BindError
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()
Auto Trait Implementations§
impl Freeze for BindError
impl RefUnwindSafe for BindError
impl Send for BindError
impl Sync for BindError
impl Unpin for BindError
impl UnsafeUnpin for BindError
impl UnwindSafe for BindError
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