#[non_exhaustive]pub struct ListenerInfo {
pub id: String,
pub owner: Option<String>,
pub after: Vec<String>,
pub before: Vec<String>,
pub priority: i32,
pub deadline: Duration,
pub threaded: bool,
pub local: bool,
pub missing: Vec<String>,
pub runs: u64,
pub failures: u64,
pub last_failure: Option<String>,
}Expand description
A listener as introspection shows it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringIts id.
owner: Option<String>Its owner.
after: Vec<String>The listeners it runs after.
before: Vec<String>The listeners it runs before.
priority: i32Its priority.
deadline: DurationThe deadline it gets: its own, else its point’s, else the kernel’s.
threaded: boolWhether it runs on a thread of its own.
local: boolWhether it is a local listener, bound to the thread that registered it.
missing: Vec<String>The after/before targets that are not registered.
runs: u64How many times it ran.
failures: u64How many of those runs failed (contribution dropped).
last_failure: Option<String>The last failure, as text.
Implementations§
Source§impl ListenerInfo
impl ListenerInfo
Sourcepub fn new(id: impl Into<String>) -> ListenerInfo
pub fn new(id: impl Into<String>) -> ListenerInfo
The listener id with no owner, no constraint, priority 0, the
default deadline, inline, never run.
Trait Implementations§
Source§impl Clone for ListenerInfo
impl Clone for ListenerInfo
Source§impl Debug for ListenerInfo
impl Debug for ListenerInfo
impl Eq for ListenerInfo
Source§impl PartialEq for ListenerInfo
impl PartialEq for ListenerInfo
impl StructuralPartialEq for ListenerInfo
Auto Trait Implementations§
impl Forget for ListenerInfo
impl Freeze for ListenerInfo
impl Move for ListenerInfo
impl RefUnwindSafe for ListenerInfo
impl Send for ListenerInfo
impl Sync for ListenerInfo
impl Unpin for ListenerInfo
impl UnsafeUnpin for ListenerInfo
impl UnwindSafe for ListenerInfo
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