pub struct Admission { /* private fields */ }Expand description
What a source does with an item the runtime has not accepted yet.
A source declares its policy through the _with form of its subscription
constructor and otherwise gets Admission::bounded at the default
capacity. The runtime’s own sources carry the policies the runtime gives
them and take no admission from the application.
use urushi_tui_app::Admission;
assert_eq!(Admission::default(), Admission::bounded(64));
assert_ne!(Admission::latest(), Admission::bounded(1));Implementations§
Source§impl Admission
impl Admission
Trait Implementations§
impl Copy for Admission
impl Eq for Admission
impl StructuralPartialEq for Admission
Auto Trait Implementations§
impl Freeze for Admission
impl RefUnwindSafe for Admission
impl Send for Admission
impl Sync for Admission
impl Unpin for Admission
impl UnsafeUnpin for Admission
impl UnwindSafe for Admission
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