Struct wrpc_transport::ResourceOwn
source · pub struct ResourceOwn<T: ?Sized> { /* private fields */ }
Expand description
Owned resource handle, represented as an opaque byte blob
Implementations§
source§impl<T: ?Sized> ResourceOwn<T>
impl<T: ?Sized> ResourceOwn<T>
sourcepub fn as_borrow(&self) -> ResourceBorrow<T>
pub fn as_borrow(&self) -> ResourceBorrow<T>
Returns the owned handle as ResourceBorrow
Trait Implementations§
source§impl<T: ?Sized + 'static> Debug for ResourceOwn<T>
impl<T: ?Sized + 'static> Debug for ResourceOwn<T>
source§impl<R, T: ?Sized + Send + 'static> Decode<R> for ResourceOwn<T>
impl<R, T: ?Sized + Send + 'static> Decode<R> for ResourceOwn<T>
source§type Decoder = ResourceOwnDecoder<T>
type Decoder = ResourceOwnDecoder<T>
Decoder used to decode value
source§type ListDecoder = CoreVecDecoder<<ResourceOwn<T> as Decode<R>>::Decoder>
type ListDecoder = CoreVecDecoder<<ResourceOwn<T> as Decode<R>>::Decoder>
Decoder used to decode lists of value
source§impl<T: ?Sized, W> Encode<W> for &ResourceOwn<T>
impl<T: ?Sized, W> Encode<W> for &ResourceOwn<T>
source§impl<T: ?Sized, W> Encode<W> for ResourceOwn<T>
impl<T: ?Sized, W> Encode<W> for ResourceOwn<T>
source§impl<T: ?Sized> Encoder<&ResourceOwn<T>> for ResourceEncoder
impl<T: ?Sized> Encoder<&ResourceOwn<T>> for ResourceEncoder
source§impl<T: ?Sized> Encoder<ResourceOwn<T>> for ResourceEncoder
impl<T: ?Sized> Encoder<ResourceOwn<T>> for ResourceEncoder
source§impl<T: ?Sized> From<ResourceOwn<T>> for Bytes
impl<T: ?Sized> From<ResourceOwn<T>> for Bytes
source§fn from(_: ResourceOwn<T>) -> Self
fn from(_: ResourceOwn<T>) -> Self
Converts to this type from the input type.
source§impl<T: ?Sized> From<ResourceOwn<T>> for ResourceBorrow<T>
impl<T: ?Sized> From<ResourceOwn<T>> for ResourceBorrow<T>
source§fn from(_: ResourceOwn<T>) -> Self
fn from(_: ResourceOwn<T>) -> Self
Converts to this type from the input type.
source§impl<T: ?Sized> Hash for ResourceOwn<T>
impl<T: ?Sized> Hash for ResourceOwn<T>
source§impl<T: ?Sized> PartialEq for ResourceOwn<T>
impl<T: ?Sized> PartialEq for ResourceOwn<T>
impl<T: ?Sized> Eq for ResourceOwn<T>
Auto Trait Implementations§
impl<T> !Freeze for ResourceOwn<T>
impl<T> RefUnwindSafe for ResourceOwn<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for ResourceOwn<T>
impl<T> Sync for ResourceOwn<T>
impl<T> Unpin for ResourceOwn<T>
impl<T> UnwindSafe for ResourceOwn<T>where
T: UnwindSafe + ?Sized,
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