pub trait WithName {
// Required method
fn with_name_and_kind(self, name: Option<&str>, kind: Option<&str>) -> Self;
// Provided methods
fn with_name(self, name: &str) -> Self
where Self: Sized { ... }
fn with_kind(self, kind: &str) -> Self
where Self: Sized { ... }
}Expand description
Trait to record information about shared objects, such as their name and
type. See implementation in crate::future::batch_semaphore::BatchSemaphore, which actually records the
name into the schedule, other types should forward calls into their
underlying primitive, as in shuttle::sync::Mutex.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".