#[repr(u32)]pub enum Needs {
Nothing = 0,
Upstream = 4,
Downstream = 8,
Both = 12,
}Expand description
What a stage needs of the path it is placed on.
Read once, out of bits 2 and 3 of tocat_boundaries. Unlike
Boundaries, which the host only warns about, an unmet requirement is a
configuration error: a stage saying this cannot do its job at all.
The two sides are separate because the stages that want them want opposite ones. A stage that seals a message and appends a tag makes its own boundaries and needs them to survive downwards; the stage that verifies and strips that tag needs whole messages from above and does not care what happens below it.
Variants§
Implementations§
Trait Implementations§
impl Copy for Needs
impl Eq for Needs
impl StructuralPartialEq for Needs
Auto Trait Implementations§
impl Freeze for Needs
impl RefUnwindSafe for Needs
impl Send for Needs
impl Sync for Needs
impl Unpin for Needs
impl UnsafeUnpin for Needs
impl UnwindSafe for Needs
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