pub struct CopperList<P: CopperListTuple> {
pub id: u32,
pub msgs: P,
/* private fields */
}
Fields§
§id: u32
§msgs: P
Implementations§
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, __Context> BorrowDecode<'__de, __Context> for CopperList<P>where
P: BorrowDecode<'__de, __Context> + CopperListTuple,
impl<'__de, P, __Context> BorrowDecode<'__de, __Context> for CopperList<P>where
P: BorrowDecode<'__de, __Context> + CopperListTuple,
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( 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, __Context> Decode<__Context> for CopperList<P>where
P: Decode<__Context> + CopperListTuple,
impl<P, __Context> Decode<__Context> for CopperList<P>where
P: Decode<__Context> + 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