pub struct LuaMethodDescriptor(pub MethodDescriptor);
Tuple Fields§
§0: MethodDescriptor
Methods from Deref<Target = MethodDescriptor>§
Sourcepub fn proto(&self) -> &MethodDescriptorProto
pub fn proto(&self) -> &MethodDescriptorProto
Proto snippet describing this method.
Sourcepub fn input_type(&self) -> MessageDescriptor
pub fn input_type(&self) -> MessageDescriptor
Method input type.
Sourcepub fn output_type(&self) -> MessageDescriptor
pub fn output_type(&self) -> MessageDescriptor
Method output type.
Trait Implementations§
Source§impl Deref for LuaMethodDescriptor
impl Deref for LuaMethodDescriptor
Source§impl From<LuaMethodDescriptor> for MethodDescriptor
impl From<LuaMethodDescriptor> for MethodDescriptor
Source§fn from(value: LuaMethodDescriptor) -> Self
fn from(value: LuaMethodDescriptor) -> Self
Converts to this type from the input type.
Source§impl From<MethodDescriptor> for LuaMethodDescriptor
impl From<MethodDescriptor> for LuaMethodDescriptor
Source§fn from(value: MethodDescriptor) -> Self
fn from(value: MethodDescriptor) -> Self
Converts to this type from the input type.
Source§impl UserData for LuaMethodDescriptor
impl UserData for LuaMethodDescriptor
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
Auto Trait Implementations§
impl Freeze for LuaMethodDescriptor
impl !RefUnwindSafe for LuaMethodDescriptor
impl Send for LuaMethodDescriptor
impl Sync for LuaMethodDescriptor
impl Unpin for LuaMethodDescriptor
impl !UnwindSafe for LuaMethodDescriptor
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> 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.