pub trait IsBound:
Sealed
+ Sized
+ Copy
+ Clone
+ Sync
+ Send
+ Unpin
+ RefUnwindSafe
+ UnwindSafe
+ 'static {
type SendMarker: Sized + Sync + Copy + Clone + Debug + Unpin + RefUnwindSafe + UnwindSafe + 'static;
type SyncMarker: Sized + Send + Copy + Clone + Debug + Unpin + RefUnwindSafe + UnwindSafe + 'static;
type CopyMarker: Sized + Send + Sync + Clone + Debug + Unpin + RefUnwindSafe + UnwindSafe + 'static;
type CloneMarker: Sized + Send + Sync + Debug + Unpin + RefUnwindSafe + UnwindSafe + 'static;
type UnpinMarker: Sized + Send + Sync + Copy + Clone + Debug + RefUnwindSafe + UnwindSafe + 'static;
type DebugMarker: Sized + Send + Sync + Copy + Clone + Unpin + RefUnwindSafe + UnwindSafe + 'static;
const BOUND_BY_SEND: bool = false;
const BOUND_BY_SYNC: bool = false;
const BOUND_BY_COPY: bool = false;
const BOUND_BY_UNPIN: bool = false;
const BOUND_BY_CLONE: bool = false;
const BOUND_BY_DEBUG: bool = false;
}Expand description
Provided Associated Constants§
Sourceconst BOUND_BY_SEND: bool = false
const BOUND_BY_SEND: bool = false
Flag that is true when the bound includes Send.
Sourceconst BOUND_BY_SYNC: bool = false
const BOUND_BY_SYNC: bool = false
Flag that is true when the bound includes Sync.
Sourceconst BOUND_BY_COPY: bool = false
const BOUND_BY_COPY: bool = false
Flag that is true when the bound includes Copy.
Sourceconst BOUND_BY_UNPIN: bool = false
const BOUND_BY_UNPIN: bool = false
Flag that is true when the bound includes Unpin.
Sourceconst BOUND_BY_CLONE: bool = false
const BOUND_BY_CLONE: bool = false
Flag that is true when the bound includes Clone.
Sourceconst BOUND_BY_DEBUG: bool = false
const BOUND_BY_DEBUG: bool = false
Flag that is true when the bound includes Debug.
Required Associated Types§
Sourcetype SendMarker: Sized + Sync + Copy + Clone + Debug + Unpin + RefUnwindSafe + UnwindSafe + 'static
type SendMarker: Sized + Sync + Copy + Clone + Debug + Unpin + RefUnwindSafe + UnwindSafe + 'static
Marker type that will implement Send if the bound includes it.
Because Send is an auto trait, storing this marker will automatically disable
implementing Send when the bound doesn’t have it.
Sourcetype SyncMarker: Sized + Send + Copy + Clone + Debug + Unpin + RefUnwindSafe + UnwindSafe + 'static
type SyncMarker: Sized + Send + Copy + Clone + Debug + Unpin + RefUnwindSafe + UnwindSafe + 'static
Marker type that will implement Sync if the bound includes it.
Because Sync is an auto trait, storing this marker will automatically disable
implementing sync when the bound doesn’t have it.
Sourcetype CopyMarker: Sized + Send + Sync + Clone + Debug + Unpin + RefUnwindSafe + UnwindSafe + 'static
type CopyMarker: Sized + Send + Sync + Clone + Debug + Unpin + RefUnwindSafe + UnwindSafe + 'static
Marker type that will implement Copy if the bound includes it.
Sourcetype CloneMarker: Sized + Send + Sync + Debug + Unpin + RefUnwindSafe + UnwindSafe + 'static
type CloneMarker: Sized + Send + Sync + Debug + Unpin + RefUnwindSafe + UnwindSafe + 'static
Marker type that will implement Clone if the bound includes it.
Sourcetype UnpinMarker: Sized + Send + Sync + Copy + Clone + Debug + RefUnwindSafe + UnwindSafe + 'static
type UnpinMarker: Sized + Send + Sync + Copy + Clone + Debug + RefUnwindSafe + UnwindSafe + 'static
Marker type that will implement Unpin if the bound includes it.
Because Unpin is an auto trait, storing this marker will automatically disable
implementing Unpin when the bound doesn’t have it.
Sourcetype DebugMarker: Sized + Send + Sync + Copy + Clone + Unpin + RefUnwindSafe + UnwindSafe + 'static
type DebugMarker: Sized + Send + Sync + Copy + Clone + Unpin + RefUnwindSafe + UnwindSafe + 'static
Marker type that will implement Debug if the bound includes it.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.