Skip to main content

ClientManagement

Struct ClientManagement 

Source
pub struct ClientManagement<'a, const R: usize, const C: usize, const E: usize> { /* private fields */ }
Available on crate feature rustcrypto only.
Expand description

The TLS Client Management cluster (§14.5).

It needs no hooks: an endpoint is four small fields, and the certificates it names belong to certificate_management.

Implementations§

Source§

impl<'a, const R: usize, const C: usize, const E: usize> ClientManagement<'a, R, C, E>

Source

pub const fn new(tables: &'a TlsTables<R, C, E>) -> Self

A cluster over shared tables.

Source

pub fn conforming( feature_map: u32, optional: &Optional<'_>, ) -> Result<Conforming<2, 3, 2, 0>>

The descriptor for an instance, derived from the specification’s tables.

Source

pub const fn tables(&self) -> &'a TlsTables<R, C, E>

The tables this cluster shares with certificate_management.

Trait Implementations§

Source§

impl<const R: usize, const C: usize, const E: usize> Cluster for ClientManagement<'_, R, C, E>

So a tuple of clusters can dispatch to it by id.

Source§

const ID: ClusterId = ID

The cluster id this implementation serves.
Source§

impl<const R: usize, const C: usize, const E: usize> ClusterHandler for ClientManagement<'_, R, C, E>

Source§

fn read( &self, resolved: &Resolved<'_>, ctx: &InteractionContext<'_>, w: &mut TlvWriter<'_>, tag: Tag, ) -> Result<(), Status>

Writes the value of resolved’s attribute under tag. Read more
Source§

fn invoke( &self, resolved: &ResolvedCommand<'_>, fields: Option<&[u8]>, ctx: &InteractionContext<'_>, w: &mut TlvWriter<'_>, tag: Tag, ) -> Result<Option<CommandId>, StatusIb>

Runs a command. Read more
Source§

fn data_version(&self, _resolved: &Resolved<'_>) -> Option<u32>

The cluster instance’s data version (§7.10.3), if it tracks one. Read more
Source§

fn write( &self, _resolved: &Resolved<'_>, _data: &[u8], _op: WriteOp, _ctx: &InteractionContext<'_>, ) -> Result<(), Status>

Writes data — the encoded TLV element, tag included — into the attribute. Read more
Source§

fn on_lifecycle(&self, _event: Lifecycle)

Reacts to something that happened to the node (see Lifecycle). Read more
Source§

impl<'a, const R: usize, const C: usize, const E: usize> Debug for ClientManagement<'a, R, C, E>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, const R: usize, const C: usize, const E: usize> !RefUnwindSafe for ClientManagement<'a, R, C, E>

§

impl<'a, const R: usize, const C: usize, const E: usize> !Send for ClientManagement<'a, R, C, E>

§

impl<'a, const R: usize, const C: usize, const E: usize> !Sync for ClientManagement<'a, R, C, E>

§

impl<'a, const R: usize, const C: usize, const E: usize> !UnwindSafe for ClientManagement<'a, R, C, E>

§

impl<'a, const R: usize, const C: usize, const E: usize> Forget for ClientManagement<'a, R, C, E>

§

impl<'a, const R: usize, const C: usize, const E: usize> Freeze for ClientManagement<'a, R, C, E>
where &'a TlsTables<R, C, E>: Freeze,

§

impl<'a, const R: usize, const C: usize, const E: usize> Move for ClientManagement<'a, R, C, E>

§

impl<'a, const R: usize, const C: usize, const E: usize> Unpin for ClientManagement<'a, R, C, E>
where &'a TlsTables<R, C, E>: Unpin,

§

impl<'a, const R: usize, const C: usize, const E: usize> UnsafeUnpin for ClientManagement<'a, R, C, E>
where &'a TlsTables<R, C, E>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.