pub struct AlreadyOwnedError {
pub existing_uid: String,
pub new_uid: String,
}Expand description
Error returned by OwnerRefExt::set_controller_reference when the object is already
controlled by a different owner.
Fields§
§existing_uid: StringThe uid of the owner reference already marked as controller on the object
new_uid: StringThe uid of the new owner that was requested to become the controller
Trait Implementations§
Source§impl Debug for AlreadyOwnedError
impl Debug for AlreadyOwnedError
Source§impl Display for AlreadyOwnedError
impl Display for AlreadyOwnedError
Source§impl Error for AlreadyOwnedError
impl Error for AlreadyOwnedError
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 AlreadyOwnedError
impl RefUnwindSafe for AlreadyOwnedError
impl Send for AlreadyOwnedError
impl Sync for AlreadyOwnedError
impl Unpin for AlreadyOwnedError
impl UnsafeUnpin for AlreadyOwnedError
impl UnwindSafe for AlreadyOwnedError
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