pub struct DataTransferId(/* private fields */);Expand description
Unique identifier for a data transfer.
Implementations§
Source§impl DataTransferId
impl DataTransferId
Sourcepub const fn into_raw(self) -> i64
pub const fn into_raw(self) -> i64
Convert the DataTransferId into the underlying integer.
This is useful if you need to pass the ID across an FFI boundary, or store it in an atomic.
Sourcepub const fn from_raw(id: i64) -> Self
pub const fn from_raw(id: i64) -> Self
Construct a DataTransferId from the underlying integer.
This should only be called with integers returned from DataTransferId::into_raw.
Trait Implementations§
Source§impl Clone for DataTransferId
impl Clone for DataTransferId
Source§fn clone(&self) -> DataTransferId
fn clone(&self) -> DataTransferId
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 DataTransferId
Source§impl Debug for DataTransferId
impl Debug for DataTransferId
impl Eq for DataTransferId
Source§impl Hash for DataTransferId
impl Hash for DataTransferId
Source§impl Ord for DataTransferId
impl Ord for DataTransferId
Source§fn cmp(&self, other: &DataTransferId) -> Ordering
fn cmp(&self, other: &DataTransferId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DataTransferId
impl PartialEq for DataTransferId
Source§impl PartialOrd for DataTransferId
impl PartialOrd for DataTransferId
impl StructuralPartialEq for DataTransferId
Auto Trait Implementations§
impl Freeze for DataTransferId
impl RefUnwindSafe for DataTransferId
impl Send for DataTransferId
impl Sync for DataTransferId
impl Unpin for DataTransferId
impl UnsafeUnpin for DataTransferId
impl UnwindSafe for DataTransferId
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