pub struct CopperList<P: CopperListTuple> {
pub id: u32,
pub msgs: P,
/* private fields */
}Fields§
§id: u32§msgs: PImplementations§
Source§impl<P: CopperListTuple> CopperList<P>
impl<P: CopperListTuple> CopperList<P>
pub fn new(id: u32, msgs: P) -> Self
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: BorrowDecode<'__de> + CopperListTuple,
impl<'__de, P> BorrowDecode<'__de> for CopperList<P>where
P: BorrowDecode<'__de> + CopperListTuple,
Source§fn borrow_decode<__D: BorrowDecoder<'__de>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl<P: Debug + CopperListTuple> Debug for CopperList<P>
impl<P: Debug + CopperListTuple> Debug for CopperList<P>
Source§impl<P> Decode for CopperList<P>where
P: Decode + CopperListTuple,
impl<P> Decode for CopperList<P>where
P: Decode + CopperListTuple,
Source§impl<P> Encode for CopperList<P>where
P: Encode + CopperListTuple,
impl<P> Encode for CopperList<P>where
P: Encode + CopperListTuple,
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