pub struct LuaServiceDescriptor(pub ServiceDescriptor);
Tuple Fields§
§0: ServiceDescriptor
Methods from Deref<Target = ServiceDescriptor>§
Sourcepub fn proto(&self) -> &ServiceDescriptorProto
pub fn proto(&self) -> &ServiceDescriptorProto
Proto snippet describing this service.
Sourcepub fn methods(&self) -> impl Iterator<Item = MethodDescriptor>
pub fn methods(&self) -> impl Iterator<Item = MethodDescriptor>
Method descriptors of this service.
Trait Implementations§
Source§impl Clone for LuaServiceDescriptor
impl Clone for LuaServiceDescriptor
Source§fn clone(&self) -> LuaServiceDescriptor
fn clone(&self) -> LuaServiceDescriptor
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Deref for LuaServiceDescriptor
impl Deref for LuaServiceDescriptor
Source§impl From<LuaServiceDescriptor> for ServiceDescriptor
impl From<LuaServiceDescriptor> for ServiceDescriptor
Source§fn from(value: LuaServiceDescriptor) -> Self
fn from(value: LuaServiceDescriptor) -> Self
Converts to this type from the input type.
Source§impl From<ServiceDescriptor> for LuaServiceDescriptor
impl From<ServiceDescriptor> for LuaServiceDescriptor
Source§fn from(value: ServiceDescriptor) -> Self
fn from(value: ServiceDescriptor) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LuaServiceDescriptor
impl PartialEq for LuaServiceDescriptor
Source§impl UserData for LuaServiceDescriptor
impl UserData for LuaServiceDescriptor
Source§fn add_methods<M: UserDataMethods<Self>>(methods: &mut M)
fn add_methods<M: UserDataMethods<Self>>(methods: &mut M)
Adds custom methods and operators specific to this userdata.
Source§fn add_fields<F>(fields: &mut F)where
F: UserDataFields<Self>,
fn add_fields<F>(fields: &mut F)where
F: UserDataFields<Self>,
Adds custom fields specific to this userdata.
Source§fn register(registry: &mut UserDataRegistry<Self>)
fn register(registry: &mut UserDataRegistry<Self>)
Registers this type for use in Lua. Read more
impl Eq for LuaServiceDescriptor
impl StructuralPartialEq for LuaServiceDescriptor
Auto Trait Implementations§
impl Freeze for LuaServiceDescriptor
impl !RefUnwindSafe for LuaServiceDescriptor
impl Send for LuaServiceDescriptor
impl Sync for LuaServiceDescriptor
impl Unpin for LuaServiceDescriptor
impl !UnwindSafe for LuaServiceDescriptor
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
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<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 moreSource§impl<T> IntoLuaMulti for Twhere
T: IntoLua,
impl<T> IntoLuaMulti for Twhere
T: IntoLua,
Source§fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
Performs the conversion.