pub struct UnitTestingCmdRequestsView<P>where
P: TLVBuilderParent,{ /* private fields */ }Expand description
Cluster-scoped view onto a crate::im::CmdDataArrayBuilder for the UnitTesting cluster. Empty-request commands push and return Self; parameterized commands return the codegen-emitted typed request builder (whose parent chain bypasses the view — close back to the array via Data + CmdData .end()?s). .end() closes the wrapped array. Command names that would collide with the view’s own inherent methods (see RESERVED_VIEW_METHOD_NAMES in the codegen — currently end, which the WebRTC cluster uses) get a cmd_ prefix.
Implementations§
Source§impl<P> UnitTestingCmdRequestsView<P>where
P: TLVBuilderParent,
impl<P> UnitTestingCmdRequestsView<P>where
P: TLVBuilderParent,
pub fn test(self, endpoint: u16) -> Result<UnitTestingCmdRequestsView<P>, Error>
pub fn test_not_handled( self, endpoint: u16, ) -> Result<UnitTestingCmdRequestsView<P>, Error>
pub fn test_specific( self, endpoint: u16, ) -> Result<UnitTestingCmdRequestsView<P>, Error>
pub fn test_unknown_command( self, endpoint: u16, ) -> Result<UnitTestingCmdRequestsView<P>, Error>
pub fn test_add_arguments( self, endpoint: u16, ) -> Result<TestAddArgumentsRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<P>, 2>>, Error>
pub fn test_simple_argument_request( self, endpoint: u16, ) -> Result<TestSimpleArgumentRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<P>, 2>>, Error>
pub fn test_struct_array_argument_request( self, endpoint: u16, ) -> Result<TestStructArrayArgumentRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<P>, 2>>, Error>
pub fn test_struct_argument_request( self, endpoint: u16, ) -> Result<TestStructArgumentRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<P>, 2>>, Error>
pub fn test_nested_struct_argument_request( self, endpoint: u16, ) -> Result<TestNestedStructArgumentRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<P>, 2>>, Error>
pub fn test_list_struct_argument_request( self, endpoint: u16, ) -> Result<TestListStructArgumentRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<P>, 2>>, Error>
pub fn test_list_int_8_u_argument_request( self, endpoint: u16, ) -> Result<TestListInt8UArgumentRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<P>, 2>>, Error>
pub fn test_nested_struct_list_argument_request( self, endpoint: u16, ) -> Result<TestNestedStructListArgumentRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<P>, 2>>, Error>
pub fn test_list_nested_struct_list_argument_request( self, endpoint: u16, ) -> Result<TestListNestedStructListArgumentRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<P>, 2>>, Error>
pub fn test_list_int_8_u_reverse_request( self, endpoint: u16, ) -> Result<TestListInt8UReverseRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<P>, 2>>, Error>
pub fn test_enums_request( self, endpoint: u16, ) -> Result<TestEnumsRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<P>, 2>>, Error>
pub fn test_nullable_optional_request( self, endpoint: u16, ) -> Result<TestNullableOptionalRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<P>, 2>>, Error>
pub fn test_complex_nullable_optional_request( self, endpoint: u16, ) -> Result<TestComplexNullableOptionalRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<P>, 2>>, Error>
pub fn simple_struct_echo_request( self, endpoint: u16, ) -> Result<SimpleStructEchoRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<P>, 2>>, Error>
pub fn timed_invoke_request( self, endpoint: u16, ) -> Result<UnitTestingCmdRequestsView<P>, Error>
pub fn test_simple_optional_argument_request( self, endpoint: u16, ) -> Result<TestSimpleOptionalArgumentRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<P>, 2>>, Error>
pub fn test_emit_test_event_request( self, endpoint: u16, ) -> Result<TestEmitTestEventRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<P>, 2>>, Error>
pub fn test_emit_test_fabric_scoped_event_request( self, endpoint: u16, ) -> Result<TestEmitTestFabricScopedEventRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<P>, 2>>, Error>
pub fn test_batch_helper_request( self, endpoint: u16, ) -> Result<TestBatchHelperRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<P>, 2>>, Error>
pub fn test_second_batch_helper_request( self, endpoint: u16, ) -> Result<TestSecondBatchHelperRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<P>, 2>>, Error>
pub fn string_echo_request( self, endpoint: u16, ) -> Result<StringEchoRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<P>, 2>>, Error>
pub fn global_echo_request( self, endpoint: u16, ) -> Result<GlobalEchoRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<P>, 2>>, Error>
pub fn test_check_command_flags( self, endpoint: u16, ) -> Result<UnitTestingCmdRequestsView<P>, Error>
pub fn test_different_vendor_mei_request( self, endpoint: u16, ) -> Result<TestDifferentVendorMeiRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<P>, 2>>, Error>
Auto Trait Implementations§
impl<P> Freeze for UnitTestingCmdRequestsView<P>where
P: Freeze,
impl<P> RefUnwindSafe for UnitTestingCmdRequestsView<P>where
P: RefUnwindSafe,
impl<P> Send for UnitTestingCmdRequestsView<P>where
P: Send,
impl<P> Sync for UnitTestingCmdRequestsView<P>where
P: Sync,
impl<P> Unpin for UnitTestingCmdRequestsView<P>where
P: Unpin,
impl<P> UnsafeUnpin for UnitTestingCmdRequestsView<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for UnitTestingCmdRequestsView<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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 moreSource§impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
Source§fn into_fallible<E>(self) -> impl Init<T, E>
fn into_fallible<E>(self) -> impl Init<T, E>
Convert the infallible initializer to a fallible one.
Source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
Source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
Source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.