#[repr(u16)]pub enum OwnershipHint {
Unspecified = 0,
ProducerOwned = 1,
ConsumerOwned = 2,
SessionOwned = 3,
Borrowed = 4,
TransferOnRef = 5,
ReleaseOnDrop = 6,
}Variants§
Unspecified = 0
ProducerOwned = 1
ConsumerOwned = 2
SessionOwned = 3
Borrowed = 4
TransferOnRef = 5
ReleaseOnDrop = 6
Implementations§
Source§impl OwnershipHint
impl OwnershipHint
pub fn try_from_u16(value: u16) -> Result<Self, NnrpError>
Trait Implementations§
Source§impl Clone for OwnershipHint
impl Clone for OwnershipHint
Source§fn clone(&self) -> OwnershipHint
fn clone(&self) -> OwnershipHint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OwnershipHint
Source§impl Debug for OwnershipHint
impl Debug for OwnershipHint
impl Eq for OwnershipHint
Source§impl PartialEq for OwnershipHint
impl PartialEq for OwnershipHint
impl StructuralPartialEq for OwnershipHint
Auto Trait Implementations§
impl Freeze for OwnershipHint
impl RefUnwindSafe for OwnershipHint
impl Send for OwnershipHint
impl Sync for OwnershipHint
impl Unpin for OwnershipHint
impl UnsafeUnpin for OwnershipHint
impl UnwindSafe for OwnershipHint
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