pub trait Lockable<'invoker, 'buffer, B: Buffer> {
    type Locked;

    fn lock(
        &self,
        invoker: &'invoker mut Invoker,
        buffer: &'buffer mut B
    ) -> Self::Locked; }
Expand description

A component that can be given an Invoker and a byte buffer in order to access its methods.

Required Associated Types

The type obtained when locking the component.

Required Methods

Locks the component so methods can be invoked on it.

The Invoker and a scratch buffer must be provided. They are released and can be reused once the locked value is dropped.

Implementors