Enum crux_core::capability::Never
source · pub enum Never {}
Expand description
A type that can be used as a capability operation, but which will never be sent to the shell. This type is useful for capabilities that don’t request effects. For example, you can use this type as the Operation for a capability that just composes other capabilities.
e.g.
#[derive(Capability)]
pub struct Compose<E> {
context: CapabilityContext<Never, E>,
}
Trait Implementations§
source§impl<'de> Deserialize<'de> for Never
impl<'de> Deserialize<'de> for Never
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Operation for Never
impl Operation for Never
Implement Operation
for Never
to allow using it as a capability operation.
source§impl PartialEq for Never
impl PartialEq for Never
impl StructuralPartialEq for Never
Auto Trait Implementations§
impl Freeze for Never
impl RefUnwindSafe for Never
impl Send for Never
impl Sync for Never
impl Unpin for Never
impl UnwindSafe for Never
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