pub struct CopperList<P>where
P: CopperListTuple,{
pub id: u32,
pub msgs: P,
/* private fields */
}
Fields§
§id: u32
§msgs: P
Implementations§
Source§impl<P> CopperList<P>where
P: CopperListTuple,
impl<P> CopperList<P>where
P: CopperListTuple,
pub fn new(id: u32, msgs: P) -> CopperList<P>
pub fn change_state(&mut self, new_state: CopperListState)
pub fn get_state(&self) -> CopperListState
Trait Implementations§
Source§impl<'__de, P> BorrowDecode<'__de> for CopperList<P>where
P: CopperListTuple + BorrowDecode<'__de>,
impl<'__de, P> BorrowDecode<'__de> for CopperList<P>where
P: CopperListTuple + BorrowDecode<'__de>,
Source§fn borrow_decode<__D>(decoder: &mut __D) -> Result<CopperList<P>, DecodeError>where
__D: BorrowDecoder<'__de>,
fn borrow_decode<__D>(decoder: &mut __D) -> Result<CopperList<P>, DecodeError>where
__D: BorrowDecoder<'__de>,
Attempt to decode this type with the given BorrowDecode.
Source§impl<P> Debug for CopperList<P>where
P: Debug + CopperListTuple,
impl<P> Debug for CopperList<P>where
P: Debug + CopperListTuple,
Source§impl<P> Decode for CopperList<P>where
P: CopperListTuple + Decode,
impl<P> Decode for CopperList<P>where
P: CopperListTuple + Decode,
Source§fn decode<__D>(decoder: &mut __D) -> Result<CopperList<P>, DecodeError>where
__D: Decoder,
fn decode<__D>(decoder: &mut __D) -> Result<CopperList<P>, DecodeError>where
__D: Decoder,
Attempt to decode this type with the given Decode.
Source§impl<P> Encode for CopperList<P>where
P: CopperListTuple + Encode,
impl<P> Encode for CopperList<P>where
P: CopperListTuple + Encode,
Auto Trait Implementations§
impl<P> Freeze for CopperList<P>where
P: Freeze,
impl<P> RefUnwindSafe for CopperList<P>where
P: RefUnwindSafe,
impl<P> Send for CopperList<P>where
P: Send,
impl<P> Sync for CopperList<P>where
P: Sync,
impl<P> Unpin for CopperList<P>where
P: Unpin,
impl<P> UnwindSafe for CopperList<P>where
P: 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