pub struct StatusSegment {
pub id: StatusSegmentId,
pub priority: i32,
pub min_width: u16,
pub render: Arc<dyn Fn(&StatusContext<'_>) -> StatusCell + Send + Sync>,
}Fields§
§id: StatusSegmentId§priority: i32§min_width: u16§render: Arc<dyn Fn(&StatusContext<'_>) -> StatusCell + Send + Sync>Implementations§
Source§impl StatusSegment
impl StatusSegment
pub fn new( id: impl Into<StatusSegmentId>, priority: i32, min_width: u16, render: impl Fn(&StatusContext<'_>) -> StatusCell + Send + Sync + 'static, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for StatusSegment
impl !UnwindSafe for StatusSegment
impl Freeze for StatusSegment
impl Send for StatusSegment
impl Sync for StatusSegment
impl Unpin for StatusSegment
impl UnsafeUnpin for StatusSegment
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