pub struct EmptyOperatorRef;Expand description
The logical Operator role handle (main-ai, phase_a_op, …),
re-exported here so it sits alongside SessionId — the other half of
the operator-login identity pair — despite being defined one layer down.
It has to be defined in mlua-swarm-schema rather than in this module:
crate::BindRequest carries one as binding_target, and that struct
lives in the schema crate, which does not (and must not) depend on this
one. Not to be confused with Role below, which is the closed
authorization enum (Operator / Worker / Observer / Senior).
The sole way to fail OperatorRef::new: an empty role name.
Trait Implementations§
Source§impl Clone for EmptyOperatorRef
impl Clone for EmptyOperatorRef
Source§fn clone(&self) -> EmptyOperatorRef
fn clone(&self) -> EmptyOperatorRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmptyOperatorRef
impl Debug for EmptyOperatorRef
Source§impl Display for EmptyOperatorRef
impl Display for EmptyOperatorRef
impl Eq for EmptyOperatorRef
Source§impl Error for EmptyOperatorRef
impl Error for EmptyOperatorRef
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for EmptyOperatorRef
impl PartialEq for EmptyOperatorRef
impl StructuralPartialEq for EmptyOperatorRef
Auto Trait Implementations§
impl Freeze for EmptyOperatorRef
impl RefUnwindSafe for EmptyOperatorRef
impl Send for EmptyOperatorRef
impl Sync for EmptyOperatorRef
impl Unpin for EmptyOperatorRef
impl UnsafeUnpin for EmptyOperatorRef
impl UnwindSafe for EmptyOperatorRef
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<E> ExternalError for E
impl<E> ExternalError for E
fn into_lua_err(self) -> Error
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more