Struct PointInfo
#[non_exhaustive]pub struct PointInfo {
pub id: &'static str,
pub kind: PointKind,
pub description: String,
pub declared: bool,
pub deadline: Duration,
pub fail_closed: bool,
pub budget: Option<Duration>,
pub facets: Vec<Facet>,
pub version: u32,
pub listeners: Vec<ListenerInfo>,
}Expand description
A point 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: &'static strIts id.
kind: PointKindWhat it is for.
description: StringIts description; empty until declared.
declared: boolWhether its owner declared it (Bus::declare_point); a point
listened to before that is not.
deadline: DurationThe deadline of its listeners that set none.
fail_closed: boolWhether a listener failure refuses the request
(PointSpec::fail_closed).
budget: Option<Duration>The time one pass of its listeners should take
(PointSpec::budget).
facets: Vec<Facet>What its declaration says for capability contracts
(PointSpec::facets): read by their crates
(bus_contract_journal::is_journaled(&info.facets)).
version: u32Its version (PointSpec::version).
listeners: Vec<ListenerInfo>Its listeners, in the order they run.
Implementations§
Trait Implementations§
impl Eq for PointInfo
impl StructuralPartialEq for PointInfo
Auto Trait Implementations§
impl Freeze for PointInfo
impl !RefUnwindSafe for PointInfo
impl Send for PointInfo
impl Sync for PointInfo
impl Unpin for PointInfo
impl UnsafeUnpin for PointInfo
impl !UnwindSafe for PointInfo
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