#[repr(u32)]pub enum TransferableOwnership {
SCTAG_TMO_UNFILLED = 0,
SCTAG_TMO_UNOWNED = 1,
SCTAG_TMO_FIRST_OWNED = 2,
SCTAG_TMO_MAPPED_DATA = 3,
SCTAG_TMO_CUSTOM = 4,
SCTAG_TMO_USER_MIN = 5,
}Expand description
Values used to describe the ownership individual Transferables.
Note that these can show up in DifferentProcess clones, since DifferentProcess ArrayBuffers can be Transferred. In that case, this will distinguish the specific ownership mechanism: is it a malloc pointer or a memory mapping?
Variants§
SCTAG_TMO_UNFILLED = 0
Transferable data has not been filled in yet.
SCTAG_TMO_UNOWNED = 1
Structured clone buffer does not yet own the data.
SCTAG_TMO_FIRST_OWNED = 2
All enum values at least this large are owned by the clone buffer.
SCTAG_TMO_MAPPED_DATA = 3
Data is a memory mapped pointer.
SCTAG_TMO_CUSTOM = 4
Data is embedding-specific. The engine can free it by calling the freeTransfer op.
SCTAG_TMO_USER_MIN = 5
Same as SCTAG_TMO_CUSTOM, but the embedding can also use SCTAG_TMO_USER_MIN and greater, up to 2^32-1, to distinguish specific ownership variants.
Implementations§
Source§impl TransferableOwnership
impl TransferableOwnership
pub const SCTAG_TMO_ALLOC_DATA: TransferableOwnership = TransferableOwnership::SCTAG_TMO_FIRST_OWNED
Trait Implementations§
Source§impl Clone for TransferableOwnership
impl Clone for TransferableOwnership
Source§fn clone(&self) -> TransferableOwnership
fn clone(&self) -> TransferableOwnership
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TransferableOwnership
impl Debug for TransferableOwnership
Source§impl Hash for TransferableOwnership
impl Hash for TransferableOwnership
Source§impl PartialEq for TransferableOwnership
impl PartialEq for TransferableOwnership
impl Copy for TransferableOwnership
impl Eq for TransferableOwnership
impl StructuralPartialEq for TransferableOwnership
Auto Trait Implementations§
impl Freeze for TransferableOwnership
impl RefUnwindSafe for TransferableOwnership
impl Send for TransferableOwnership
impl Sync for TransferableOwnership
impl Unpin for TransferableOwnership
impl UnwindSafe for TransferableOwnership
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes
Size for each variant:
SCTAG_TMO_UNFILLED: 0 bytesSCTAG_TMO_UNOWNED: 0 bytesSCTAG_TMO_FIRST_OWNED: 0 bytesSCTAG_TMO_MAPPED_DATA: 0 bytesSCTAG_TMO_CUSTOM: 0 bytesSCTAG_TMO_USER_MIN: 0 bytes