pub struct PushAvStreamHandler<'a, H, const NC: usize>where
H: PushAvStreamHooks,{ /* private fields */ }Expand description
Handler for the Push AV Stream Transport cluster (0x0555).
Implementations§
Source§impl<'a, H, const NC: usize> PushAvStreamHandler<'a, H, NC>where
H: PushAvStreamHooks,
impl<'a, H, const NC: usize> PushAvStreamHandler<'a, H, NC>where
H: PushAvStreamHooks,
Sourcepub const CLUSTER: Cluster<'static>
pub const CLUSTER: Cluster<'static>
Cluster metadata advertising the mandatory attribute / command
set without optional features. Build a custom Cluster
value via decl::FULL_CLUSTER.with_features(...) for
PER_ZONE_SENSITIVITY / METADATA.
Sourcepub const fn new(
dataver: Dataver,
endpoint_id: u16,
config: PushAvStreamConfig<'a>,
hooks: H,
) -> PushAvStreamHandler<'a, H, NC>
pub const fn new( dataver: Dataver, endpoint_id: u16, config: PushAvStreamConfig<'a>, hooks: H, ) -> PushAvStreamHandler<'a, H, NC>
Construct a new handler.
Sourcepub const fn adapt(self) -> HandlerAsyncAdaptor<PushAvStreamHandler<'a, H, NC>>
pub const fn adapt(self) -> HandlerAsyncAdaptor<PushAvStreamHandler<'a, H, NC>>
Wrap in the generic async adaptor for registration with a
rs-matter Node.
Sourcepub const fn endpoint_id(&self) -> u16
pub const fn endpoint_id(&self) -> u16
Endpoint this handler is mounted on.
Sourcepub fn connections(&self) -> Vec<PushConnection, NC>
pub fn connections(&self) -> Vec<PushConnection, NC>
Snapshot the current connections. Useful for diagnostics.
Trait Implementations§
Source§impl<'a, H, const NC: usize> ClusterAsyncHandler for PushAvStreamHandler<'a, H, NC>where
H: PushAvStreamHooks,
impl<'a, H, const NC: usize> ClusterAsyncHandler for PushAvStreamHandler<'a, H, NC>where
H: PushAvStreamHooks,
Source§const CLUSTER: Cluster<'static> = Self::CLUSTER
const CLUSTER: Cluster<'static> = Self::CLUSTER
The cluster-metadata corresponding to this handler trait.
fn dataver(&self) -> u32
fn dataver_changed(&self)
async fn supported_formats<P>(
&self,
_ctx: impl ReadContext,
builder: ArrayAttributeRead<SupportedFormatStructArrayBuilder<P>, SupportedFormatStructBuilder<P>>,
) -> Result<P, Error>where
P: TLVBuilderParent,
async fn current_connections<P>(
&self,
ctx: impl ReadContext,
builder: ArrayAttributeRead<TransportConfigurationStructArrayBuilder<P>, TransportConfigurationStructBuilder<P>>,
) -> Result<P, Error>where
P: TLVBuilderParent,
async fn handle_allocate_push_transport<P>(
&self,
ctx: impl InvokeContext,
request: AllocatePushTransportRequest<'_>,
response: AllocatePushTransportResponseBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
async fn handle_deallocate_push_transport( &self, ctx: impl InvokeContext, request: DeallocatePushTransportRequest<'_>, ) -> Result<(), Error>
async fn handle_modify_push_transport( &self, ctx: impl InvokeContext, request: ModifyPushTransportRequest<'_>, ) -> Result<(), Error>
async fn handle_set_transport_status( &self, ctx: impl InvokeContext, request: SetTransportStatusRequest<'_>, ) -> Result<(), Error>
async fn handle_manually_trigger_transport( &self, ctx: impl InvokeContext, request: ManuallyTriggerTransportRequest<'_>, ) -> Result<(), Error>
async fn handle_find_transport<P>(
&self,
ctx: impl InvokeContext,
request: FindTransportRequest<'_>,
response: FindTransportResponseBuilder<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>>
Auto Trait Implementations§
impl<'a, H, const NC: usize> !Freeze for PushAvStreamHandler<'a, H, NC>
impl<'a, H, const NC: usize> !RefUnwindSafe for PushAvStreamHandler<'a, H, NC>
impl<'a, H, const NC: usize> !Sync for PushAvStreamHandler<'a, H, NC>
impl<'a, H, const NC: usize> Send for PushAvStreamHandler<'a, H, NC>where
H: Send,
impl<'a, H, const NC: usize> Unpin for PushAvStreamHandler<'a, H, NC>where
H: Unpin,
impl<'a, H, const NC: usize> UnsafeUnpin for PushAvStreamHandler<'a, H, NC>where
H: UnsafeUnpin,
impl<'a, H, const NC: usize> UnwindSafe for PushAvStreamHandler<'a, H, NC>where
H: 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.