pub struct CuHandlePayload<T, M>{
pub handle: CuHandle<T>,
/* private fields */
}Fields§
§handle: CuHandle<T>Implementations§
Source§impl<T, M> CuHandlePayload<T, M>
impl<T, M> CuHandlePayload<T, M>
pub fn from_handle(handle: CuHandle<T>) -> Self
pub fn new_detached(inner: T) -> Self
pub fn from_box(inner: Box<T>) -> Self
pub fn with_inner<R>(&self, f: impl FnOnce(&T) -> R) -> R
pub fn with_inner_mut<R>(&mut self, f: impl FnOnce(&mut T) -> R) -> R
Trait Implementations§
Source§impl<T, M> Clone for CuHandlePayload<T, M>
impl<T, M> Clone for CuHandlePayload<T, M>
Source§impl<T, M> Debug for CuHandlePayload<T, M>
impl<T, M> Debug for CuHandlePayload<T, M>
Source§impl<T, M> Decode<()> for CuHandlePayload<T, M>
impl<T, M> Decode<()> for CuHandlePayload<T, M>
Source§impl<T, M> Default for CuHandlePayload<T, M>where
T: CuHandlePayloadInit,
M: CuHandlePayloadMeta + 'static,
impl<T, M> Default for CuHandlePayload<T, M>where
T: CuHandlePayloadInit,
M: CuHandlePayloadMeta + 'static,
Source§impl<'de, T, M> Deserialize<'de> for CuHandlePayload<T, M>
impl<'de, T, M> Deserialize<'de> for CuHandlePayload<T, M>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T, M> Encode for CuHandlePayload<T, M>
impl<T, M> Encode for CuHandlePayload<T, M>
Source§impl<T, M> Serialize for CuHandlePayload<T, M>
impl<T, M> Serialize for CuHandlePayload<T, M>
Source§impl<T, M> TypePath for CuHandlePayload<T, M>
impl<T, M> TypePath for CuHandlePayload<T, M>
Auto Trait Implementations§
impl<T, M> Freeze for CuHandlePayload<T, M>
impl<T, M> RefUnwindSafe for CuHandlePayload<T, M>where
M: RefUnwindSafe,
impl<T, M> Send for CuHandlePayload<T, M>where
M: Send,
impl<T, M> Sync for CuHandlePayload<T, M>where
M: Sync,
impl<T, M> Unpin for CuHandlePayload<T, M>where
M: Unpin,
impl<T, M> UnsafeUnpin for CuHandlePayload<T, M>
impl<T, M> UnwindSafe for CuHandlePayload<T, M>where
M: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more