pub struct LuaMethodDescriptorProto(pub MethodDescriptorProto);
Tuple Fields§
§0: MethodDescriptorProto
Methods from Deref<Target = MethodDescriptorProto>§
pub fn name(&self) -> &str
pub fn clear_name(&mut self)
pub fn has_name(&self) -> bool
pub fn set_name(&mut self, v: String)
pub fn mut_name(&mut self) -> &mut String
pub fn take_name(&mut self) -> String
pub fn input_type(&self) -> &str
pub fn clear_input_type(&mut self)
pub fn has_input_type(&self) -> bool
pub fn set_input_type(&mut self, v: String)
pub fn mut_input_type(&mut self) -> &mut String
pub fn take_input_type(&mut self) -> String
pub fn output_type(&self) -> &str
pub fn clear_output_type(&mut self)
pub fn has_output_type(&self) -> bool
pub fn set_output_type(&mut self, v: String)
pub fn mut_output_type(&mut self) -> &mut String
pub fn take_output_type(&mut self) -> String
pub fn client_streaming(&self) -> bool
pub fn clear_client_streaming(&mut self)
pub fn has_client_streaming(&self) -> bool
pub fn set_client_streaming(&mut self, v: bool)
pub fn server_streaming(&self) -> bool
pub fn clear_server_streaming(&mut self)
pub fn has_server_streaming(&self) -> bool
pub fn set_server_streaming(&mut self, v: bool)
Trait Implementations§
Source§impl Clone for LuaMethodDescriptorProto
impl Clone for LuaMethodDescriptorProto
Source§fn clone(&self) -> LuaMethodDescriptorProto
fn clone(&self) -> LuaMethodDescriptorProto
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 Debug for LuaMethodDescriptorProto
impl Debug for LuaMethodDescriptorProto
Source§impl Default for LuaMethodDescriptorProto
impl Default for LuaMethodDescriptorProto
Source§fn default() -> LuaMethodDescriptorProto
fn default() -> LuaMethodDescriptorProto
Returns the “default value” for a type. Read more
Source§impl Deref for LuaMethodDescriptorProto
impl Deref for LuaMethodDescriptorProto
Source§impl DerefMut for LuaMethodDescriptorProto
impl DerefMut for LuaMethodDescriptorProto
Source§impl From<LuaMethodDescriptorProto> for MethodDescriptorProto
impl From<LuaMethodDescriptorProto> for MethodDescriptorProto
Source§fn from(value: LuaMethodDescriptorProto) -> Self
fn from(value: LuaMethodDescriptorProto) -> Self
Converts to this type from the input type.
Source§impl From<MethodDescriptorProto> for LuaMethodDescriptorProto
impl From<MethodDescriptorProto> for LuaMethodDescriptorProto
Source§fn from(value: MethodDescriptorProto) -> Self
fn from(value: MethodDescriptorProto) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LuaMethodDescriptorProto
impl PartialEq for LuaMethodDescriptorProto
Source§impl UserData for LuaMethodDescriptorProto
impl UserData for LuaMethodDescriptorProto
Source§fn add_fields<F: UserDataFields<Self>>(fields: &mut F)
fn add_fields<F: UserDataFields<Self>>(fields: &mut F)
Adds custom fields specific to this userdata.
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 register(registry: &mut UserDataRegistry<Self>)
fn register(registry: &mut UserDataRegistry<Self>)
Registers this type for use in Lua. Read more
impl StructuralPartialEq for LuaMethodDescriptorProto
Auto Trait Implementations§
impl !Freeze for LuaMethodDescriptorProto
impl RefUnwindSafe for LuaMethodDescriptorProto
impl Send for LuaMethodDescriptorProto
impl Sync for LuaMethodDescriptorProto
impl Unpin for LuaMethodDescriptorProto
impl UnwindSafe for LuaMethodDescriptorProto
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<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.