#[repr(u8)]pub enum Role {
Blocked = 0,
None = 1,
Peer = 10,
Monitor = 20,
Operator = 30,
Admin = 40,
}Expand description
Privilege tiers on the Styrene mesh. Each role inherits all capabilities from tiers below it. The numeric value determines ordering.
Variants§
Blocked = 0
Explicit deny — all messages dropped, all requests rejected.
None = 1
No access. Fail-closed default for restrictive deployments.
Peer = 10
Mesh peer — chat, basic queries, relay requests.
Monitor = 20
Read-only monitoring — inbox queries, dashboards, datalink.
Operator = 30
Fleet operator — config updates, restricted terminal, write ops.
Admin = 40
Full control — exec, reboot, self-update, full terminal.
Implementations§
Trait Implementations§
Source§impl Ord for Role
impl Ord for Role
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Role
impl PartialOrd for Role
impl Copy for Role
impl Eq for Role
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnsafeUnpin for Role
impl UnwindSafe for Role
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