Enum Scope
pub enum Scope {
Worker,
Client,
Read,
}Expand description
What a server-protocol token may do. The listener’s own token
(Security::token) is a worker’s; others are added with
Server::set_security_scoped.
A connecting side proves its token as with a single one: the listener
finds which one it holds.
Variants§
Worker
Holds shards and runs workflows, and makes any call.
Client
Makes calls (start, signal, query, list, …), holds no shard.
Read
Makes calls that only read: list, describe, query, result, streams, types, metrics, info, limits, export.
Trait Implementations§
impl Copy for Scope
impl Eq for Scope
impl StructuralPartialEq for Scope
Auto Trait Implementations§
impl Forget for Scope
impl Freeze for Scope
impl Move for Scope
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnsafeUnpin for Scope
impl UnwindSafe for Scope
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