[−][src]Struct sm_ext::HandleRef
Methods
impl<'ty, T> HandleRef<'ty, T>
[src]
pub fn new(
ty: &'ty HandleType<T>,
handle: HandleId,
owner: IdentityTokenPtr
) -> Result<Self, HandleError>
[src]
ty: &'ty HandleType<T>,
handle: HandleId,
owner: IdentityTokenPtr
) -> Result<Self, HandleError>
pub fn clone_handle(
&self,
new_owner: IdentityTokenPtr
) -> Result<HandleId, HandleError>
[src]
&self,
new_owner: IdentityTokenPtr
) -> Result<HandleId, HandleError>
Trait Implementations
impl<'_, T> Debug for HandleRef<'_, T>
[src]
impl<'_, T> Deref for HandleRef<'_, T>
[src]
impl<'_, T> DerefMut for HandleRef<'_, T>
[src]
This is unsound if multiple HandleRef
s are created wrapping the same Handle data.
To guarantee safety, do not use mutable HandleRefs but instead use a std::cell::RefCell
wrapper inside your HandleType
.
impl<'_, T> Drop for HandleRef<'_, T>
[src]
impl<'ctx, 'ty, T: HasHandleType> TryFromPlugin<'ctx, cell_t> for HandleRef<'ty, T>
[src]
type Error = HandleError
fn try_from_plugin(
ctx: &'ctx IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>
[src]
ctx: &'ctx IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>
Auto Trait Implementations
impl<'ty, T> RefUnwindSafe for HandleRef<'ty, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'ty, T> !Send for HandleRef<'ty, T>
impl<'ty, T> !Sync for HandleRef<'ty, T>
impl<'ty, T> Unpin for HandleRef<'ty, T>
impl<'ty, T> UnwindSafe for HandleRef<'ty, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<'_, T, U> TryFromPlugin<'_, T> for U where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
fn try_from_plugin(
&IPluginContext,
T
) -> Result<U, <U as TryFromPlugin<'_, T>>::Error>
[src]
&IPluginContext,
T
) -> Result<U, <U as TryFromPlugin<'_, T>>::Error>
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<'ctx, T, U> TryIntoPlugin<'ctx, U> for T where
U: TryFromPlugin<'ctx, T>,
[src]
U: TryFromPlugin<'ctx, T>,
type Error = <U as TryFromPlugin<'ctx, T>>::Error
fn try_into_plugin(
Self,
&'ctx IPluginContext
) -> Result<U, <U as TryFromPlugin<'ctx, T>>::Error>
[src]
Self,
&'ctx IPluginContext
) -> Result<U, <U as TryFromPlugin<'ctx, T>>::Error>