pub struct PluginLockError {
pub line: usize,
pub message: String,
}Expand description
Why a plugin lock was refused. 插件锁被拒绝的原因。
The line is 1-based; it is 0 only for a failure that names no line.
行号从 1 起;只有不指向某行的失败才为 0。
Fields§
§line: usize1-based line the failure points at; 0 when it names no line.
失败指向的行号,从 1 起;不指向某行时为 0。
message: StringHuman-readable description of the failure. 失败的人类可读描述。
Implementations§
Trait Implementations§
Source§impl Clone for PluginLockError
impl Clone for PluginLockError
Source§fn clone(&self) -> PluginLockError
fn clone(&self) -> PluginLockError
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 PluginLockError
impl Debug for PluginLockError
Source§impl Display for PluginLockError
impl Display for PluginLockError
impl Eq for PluginLockError
Source§impl Error for PluginLockError
impl Error for PluginLockError
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 PartialEq for PluginLockError
impl PartialEq for PluginLockError
impl StructuralPartialEq for PluginLockError
Auto Trait Implementations§
impl Freeze for PluginLockError
impl RefUnwindSafe for PluginLockError
impl Send for PluginLockError
impl Sync for PluginLockError
impl Unpin for PluginLockError
impl UnsafeUnpin for PluginLockError
impl UnwindSafe for PluginLockError
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