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, __Context> BorrowDecode<'__de, __Context> for CopperList<P>where
P: CopperListTuple + BorrowDecode<'__de, __Context>,
impl<'__de, P, __Context> BorrowDecode<'__de, __Context> for CopperList<P>where
P: CopperListTuple + BorrowDecode<'__de, __Context>,
Source§fn borrow_decode<__D>(decoder: &mut __D) -> Result<CopperList<P>, DecodeError>where
__D: BorrowDecoder<'__de, Context = __Context>,
fn borrow_decode<__D>(decoder: &mut __D) -> Result<CopperList<P>, DecodeError>where
__D: BorrowDecoder<'__de, Context = __Context>,
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, __Context> Decode<__Context> for CopperList<P>where
P: CopperListTuple + Decode<__Context>,
impl<P, __Context> Decode<__Context> for CopperList<P>where
P: CopperListTuple + Decode<__Context>,
Source§fn decode<__D>(decoder: &mut __D) -> Result<CopperList<P>, DecodeError>where
__D: Decoder<Context = __Context>,
fn decode<__D>(decoder: &mut __D) -> Result<CopperList<P>, DecodeError>where
__D: Decoder<Context = __Context>,
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