pub struct CuRuntimeBuilder<'cfg, CT, CB, P: CopperListTuple, M: CuMonitor, const NBCL: usize, TI, BI, MI, CLW, KFW> { /* private fields */ }Implementations§
Source§impl<'cfg, CT, CB, P: CopperListTuple, M: CuMonitor, const NBCL: usize, TI, BI, MI, CLW, KFW> CuRuntimeBuilder<'cfg, CT, CB, P, M, NBCL, TI, BI, MI, CLW, KFW>
impl<'cfg, CT, CB, P: CopperListTuple, M: CuMonitor, const NBCL: usize, TI, BI, MI, CLW, KFW> CuRuntimeBuilder<'cfg, CT, CB, P, M, NBCL, TI, BI, MI, CLW, KFW>
pub fn new( clock: RobotClock, config: &'cfg CuConfig, mission: &'cfg str, parts: CuRuntimeParts<CT, CB, P, M, NBCL, TI, BI, MI>, copperlists_logger: CLW, keyframes_logger: KFW, ) -> Self
pub fn with_subsystem(self, subsystem: Subsystem) -> Self
pub fn with_instance_id(self, instance_id: u32) -> Self
pub fn with_resources(self, resources: ResourceManager) -> Self
pub fn try_with_resources_instantiator( self, resources_instantiator: impl FnOnce(&CuConfig) -> CuResult<ResourceManager>, ) -> CuResult<Self>
Source§impl<'cfg, CT, CB, P: CopperListTuple + CuListZeroedInit + Default + AsyncCopperListPayload + 'static, M: CuMonitor, const NBCL: usize, TI, BI, MI, CLW, KFW> CuRuntimeBuilder<'cfg, CT, CB, P, M, NBCL, TI, BI, MI, CLW, KFW>where
TI: for<'c> Fn(Vec<Option<&'c ComponentConfig>>, &mut ResourceManager) -> CuResult<CT>,
BI: Fn(&CuConfig, &mut ResourceManager) -> CuResult<CB>,
MI: Fn(&CuConfig, CuMonitoringMetadata, CuMonitoringRuntime) -> M,
CLW: WriteStream<CopperList<P>> + 'static,
KFW: WriteStream<KeyFrame> + 'static,
impl<'cfg, CT, CB, P: CopperListTuple + CuListZeroedInit + Default + AsyncCopperListPayload + 'static, M: CuMonitor, const NBCL: usize, TI, BI, MI, CLW, KFW> CuRuntimeBuilder<'cfg, CT, CB, P, M, NBCL, TI, BI, MI, CLW, KFW>where
TI: for<'c> Fn(Vec<Option<&'c ComponentConfig>>, &mut ResourceManager) -> CuResult<CT>,
BI: Fn(&CuConfig, &mut ResourceManager) -> CuResult<CB>,
MI: Fn(&CuConfig, CuMonitoringMetadata, CuMonitoringRuntime) -> M,
CLW: WriteStream<CopperList<P>> + 'static,
KFW: WriteStream<KeyFrame> + 'static,
Auto Trait Implementations§
impl<'cfg, CT, CB, P, M, const NBCL: usize, TI, BI, MI, CLW, KFW> Freeze for CuRuntimeBuilder<'cfg, CT, CB, P, M, NBCL, TI, BI, MI, CLW, KFW>
impl<'cfg, CT, CB, P, M, const NBCL: usize, TI, BI, MI, CLW, KFW> !RefUnwindSafe for CuRuntimeBuilder<'cfg, CT, CB, P, M, NBCL, TI, BI, MI, CLW, KFW>
impl<'cfg, CT, CB, P, M, const NBCL: usize, TI, BI, MI, CLW, KFW> Send for CuRuntimeBuilder<'cfg, CT, CB, P, M, NBCL, TI, BI, MI, CLW, KFW>
impl<'cfg, CT, CB, P, M, const NBCL: usize, TI, BI, MI, CLW, KFW> Sync for CuRuntimeBuilder<'cfg, CT, CB, P, M, NBCL, TI, BI, MI, CLW, KFW>
impl<'cfg, CT, CB, P, M, const NBCL: usize, TI, BI, MI, CLW, KFW> Unpin for CuRuntimeBuilder<'cfg, CT, CB, P, M, NBCL, TI, BI, MI, CLW, KFW>
impl<'cfg, CT, CB, P, M, const NBCL: usize, TI, BI, MI, CLW, KFW> UnsafeUnpin for CuRuntimeBuilder<'cfg, CT, CB, P, M, NBCL, TI, BI, MI, CLW, KFW>
impl<'cfg, CT, CB, P, M, const NBCL: usize, TI, BI, MI, CLW, KFW> !UnwindSafe for CuRuntimeBuilder<'cfg, CT, CB, P, M, NBCL, TI, BI, MI, CLW, KFW>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more