pub struct MethodType<T: Method> {
pub type_: &'static str,
pub payload: T,
}
Fields§
§type_: &'static str
§payload: T
Trait Implementations§
Source§impl<T: Clone + Method> Clone for MethodType<T>
impl<T: Clone + Method> Clone for MethodType<T>
Source§fn clone(&self) -> MethodType<T>
fn clone(&self) -> MethodType<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for MethodType<T>where
T: Freeze,
impl<T> RefUnwindSafe for MethodType<T>where
T: RefUnwindSafe,
impl<T> Send for MethodType<T>where
T: Send,
impl<T> Sync for MethodType<T>where
T: Sync,
impl<T> Unpin for MethodType<T>where
T: Unpin,
impl<T> UnwindSafe for MethodType<T>where
T: UnwindSafe,
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