Struct os_id::ThreadName
source · [−]pub struct ThreadName { /* private fields */ }
Expand description
Thread name, limited to 16 characters which is common limit for unix systems.
Note that actual limit is 15 characters as 16 includes is needed for terminating character.
Commonly it is valid utf-8 string, but due to potential encoding differences, it is possible
that name cannot be interpreted as utf-8 string.
In this case user is encouraged to use as_bytes
method and perform conversion by himself.
fmt
-
Debug
trait outputs content as 16 bytes. -
Display
trait outputs content as string, if possible, otherwise fallbacks to byte slice.
Implementations
sourceimpl ThreadName
impl ThreadName
Trait Implementations
sourceimpl Clone for ThreadName
impl Clone for ThreadName
sourcefn clone(&self) -> ThreadName
fn clone(&self) -> ThreadName
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ThreadName
impl Debug for ThreadName
sourceimpl Display for ThreadName
impl Display for ThreadName
sourceimpl Hash for ThreadName
impl Hash for ThreadName
sourceimpl Ord for ThreadName
impl Ord for ThreadName
sourceimpl PartialEq<&'_ str> for ThreadName
impl PartialEq<&'_ str> for ThreadName
sourceimpl PartialEq<ThreadName> for ThreadName
impl PartialEq<ThreadName> for ThreadName
sourceimpl PartialEq<ThreadName> for &str
impl PartialEq<ThreadName> for &str
sourceimpl PartialEq<ThreadName> for str
impl PartialEq<ThreadName> for str
sourceimpl PartialEq<str> for ThreadName
impl PartialEq<str> for ThreadName
sourceimpl PartialOrd<ThreadName> for ThreadName
impl PartialOrd<ThreadName> for ThreadName
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for ThreadName
impl Eq for ThreadName
Auto Trait Implementations
impl RefUnwindSafe for ThreadName
impl Send for ThreadName
impl Sync for ThreadName
impl Unpin for ThreadName
impl UnwindSafe for ThreadName
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more