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