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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
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