pub struct KernelModule {
pub class_name: String,
pub verbs: Vec<String>,
}Expand description
A resource class of the permission kernel, as returned by list_modules.
Fields§
§class_name: String§verbs: Vec<String>Trait Implementations§
Source§impl Clone for KernelModule
impl Clone for KernelModule
Source§impl Debug for KernelModule
impl Debug for KernelModule
impl Eq for KernelModule
Source§impl FromSchema for KernelModule
impl FromSchema for KernelModule
fn from_value(value: &SchemaValue) -> Result<Self, FromSchemaError>
Source§impl FromWire for KernelModule
impl FromWire for KernelModule
fn read_wire( reader: &mut WireReader, index: ValueNodeIndex, ) -> Result<Self, WireError>
fn read_result_payload( reader: &mut WireReader, index: Option<i32>, ) -> Result<Self, WireError>
Source§impl IntoSchema for KernelModule
impl IntoSchema for KernelModule
fn type_id() -> TypeId
fn register_in(builder: &mut SchemaBuilder) -> SchemaType
fn to_value(&self) -> SchemaValue
Source§impl IntoWire for KernelModule
impl IntoWire for KernelModule
fn preflight(&self, resources: &mut WirePreflight) -> Result<(), WireError>
Source§async fn prepare_wire(&self) -> Result<(), WireError>
async fn prepare_wire(&self) -> Result<(), WireError>
Wrap native stream endpoints without reading from them. This is called
only after the complete value has passed resource preflight.
fn write_wire( &self, writer: &mut WireWriter, ) -> Result<ValueNodeIndex, WireError>
Source§const NEEDS_PREPARATION: bool = true
const NEEDS_PREPARATION: bool = true
False only when
prepare_wire is a no-op for every value of this type.
Resource preflight still runs regardless of this flag. Custom and derived
implementations prepare by default, including those with no stream schema.fn write_result_payload( &self, writer: &mut WireWriter, ) -> Result<Option<i32>, WireError>
Source§impl PartialEq for KernelModule
impl PartialEq for KernelModule
impl StructuralPartialEq for KernelModule
Source§impl WireSchema for KernelModule
impl WireSchema for KernelModule
fn contains_stream(seen: &mut HashSet<&'static str>) -> bool
fn append_schema(builder: &mut WireSchemaBuilder) -> TypeNodeIndex
fn wire_type_id() -> String
const IS_UNIT: bool = false
Auto Trait Implementations§
impl Freeze for KernelModule
impl RefUnwindSafe for KernelModule
impl Send for KernelModule
impl Sync for KernelModule
impl Unpin for KernelModule
impl UnsafeUnpin for KernelModule
impl UnwindSafe for KernelModule
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