pub struct BasicInfoHandler(/* private fields */);Expand description
The system implementation of a handler for the Basic Information Matter cluster.
Implementations§
Source§impl BasicInfoHandler
impl BasicInfoHandler
Sourcepub fn new(dataver: Dataver) -> BasicInfoHandler
pub fn new(dataver: Dataver) -> BasicInfoHandler
Create a new instance of BasicInfoHandler with the given Dataver
Sourcepub const fn adapt(self) -> HandlerAdaptor<BasicInfoHandler>
pub const fn adapt(self) -> HandlerAdaptor<BasicInfoHandler>
Adapt the handler instance to the generic rs-matter Handler trait
Trait Implementations§
Source§impl Clone for BasicInfoHandler
impl Clone for BasicInfoHandler
Source§fn clone(&self) -> BasicInfoHandler
fn clone(&self) -> BasicInfoHandler
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ClusterHandler for BasicInfoHandler
impl ClusterHandler for BasicInfoHandler
fn dataver(&self) -> u32
fn dataver_changed(&self)
fn data_model_revision(&self, ctx: impl ReadContext) -> Result<u16, Error>
fn vendor_id(&self, ctx: impl ReadContext) -> Result<u16, Error>
fn vendor_name<P>(
&self,
ctx: impl ReadContext,
out: Utf8StrBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn product_id(&self, ctx: impl ReadContext) -> Result<u16, Error>
fn product_name<P>(
&self,
ctx: impl ReadContext,
out: Utf8StrBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn hardware_version(&self, ctx: impl ReadContext) -> Result<u16, Error>
fn hardware_version_string<P>(
&self,
ctx: impl ReadContext,
out: Utf8StrBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn software_version(&self, ctx: impl ReadContext) -> Result<u32, Error>
fn software_version_string<P>(
&self,
ctx: impl ReadContext,
out: Utf8StrBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn node_label<P>(
&self,
ctx: impl ReadContext,
out: Utf8StrBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn set_node_label( &self, ctx: impl WriteContext, label: &str, ) -> Result<(), Error>
fn location<P>(
&self,
ctx: impl ReadContext,
out: Utf8StrBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn set_location( &self, ctx: impl WriteContext, location: &str, ) -> Result<(), Error>
fn capability_minima<P>(
&self,
ctx: impl ReadContext,
builder: CapabilityMinimaStructBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn specification_version(&self, ctx: impl ReadContext) -> Result<u32, Error>
fn max_paths_per_invoke(&self, ctx: impl ReadContext) -> Result<u16, Error>
fn configuration_version(&self, ctx: impl ReadContext) -> Result<u32, Error>
fn device_location<P>(
&self,
ctx: impl ReadContext,
builder: NullableBuilder<P, LocationDescriptorStructBuilder<P>>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn set_device_location( &self, ctx: impl WriteContext, value: Maybe<LocationDescriptorStruct<'_>, AsNullable>, ) -> Result<(), Error>
fn handle_mfg_specific_ping( &self, _ctx: impl InvokeContext, ) -> Result<(), Error>
fn manufacturing_date<P>(
&self,
ctx: impl ReadContext,
builder: Utf8StrBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn part_number<P>(
&self,
ctx: impl ReadContext,
builder: Utf8StrBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn product_url<P>(
&self,
ctx: impl ReadContext,
builder: Utf8StrBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn product_label<P>(
&self,
ctx: impl ReadContext,
builder: Utf8StrBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn serial_number<P>(
&self,
ctx: impl ReadContext,
builder: Utf8StrBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn local_config_disabled(&self, ctx: impl ReadContext) -> Result<bool, Error>
fn set_local_config_disabled( &self, ctx: impl WriteContext, value: bool, ) -> Result<(), Error>
fn unique_id<P>(
&self,
ctx: impl ReadContext,
builder: Utf8StrBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn product_appearance<P>(
&self,
ctx: impl ReadContext,
builder: ProductAppearanceStructBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn lifecycle( &self, _ctx: impl HandlerContext, _op: LifecycleOp, ) -> Result<(), Error>
fn run( &self, _ctx: impl HandlerContext, ) -> impl Future<Output = Result<(), Error>>
fn reachable(&self, ctx: impl ReadContext) -> Result<bool, Error>
Auto Trait Implementations§
impl !Freeze for BasicInfoHandler
impl !RefUnwindSafe for BasicInfoHandler
impl !Sync for BasicInfoHandler
impl Send for BasicInfoHandler
impl Unpin for BasicInfoHandler
impl UnsafeUnpin for BasicInfoHandler
impl UnwindSafe for BasicInfoHandler
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.