Skip to main content

SysconfigLocalServerHandler

Trait SysconfigLocalServerHandler 

Source
pub trait SysconfigLocalServerHandler<___T: Transport = Channel> {
    // Required methods
    fn read(
        &mut self,
        responder: Responder<Read, ___T>,
    ) -> impl Future<Output = ()>;
    fn write(
        &mut self,
        request: Request<Write, ___T>,
        responder: Responder<Write, ___T>,
    ) -> impl Future<Output = ()>;
    fn get_partition_size(
        &mut self,
        responder: Responder<GetPartitionSize, ___T>,
    ) -> impl Future<Output = ()>;
    fn flush(
        &mut self,
        responder: Responder<Flush, ___T>,
    ) -> impl Future<Output = ()>;
    fn wipe(
        &mut self,
        responder: Responder<Wipe, ___T>,
    ) -> impl Future<Output = ()>;
}
Expand description

A server handler for the Sysconfig protocol.

See Sysconfig for more details.

Required Methods§

Source

fn read(&mut self, responder: Responder<Read, ___T>) -> impl Future<Output = ()>

Read from the sub-partition

Source

fn write( &mut self, request: Request<Write, ___T>, responder: Responder<Write, ___T>, ) -> impl Future<Output = ()>

Writes to the sub-partition

Source

fn get_partition_size( &mut self, responder: Responder<GetPartitionSize, ___T>, ) -> impl Future<Output = ()>

Get sub-partition size.

Source

fn flush( &mut self, responder: Responder<Flush, ___T>, ) -> impl Future<Output = ()>

Flush all previously buffered data to persistent storage.

Source

fn wipe(&mut self, responder: Responder<Wipe, ___T>) -> impl Future<Output = ()>

Wipe all data in the sub-partition (write 0 to all bytes).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<___H, ___T> SysconfigLocalServerHandler<___T> for Local<___H>
where ___H: SysconfigServerHandler<___T>, ___T: Transport,

Source§

async fn read(&mut self, responder: Responder<Read, ___T>)

Source§

async fn write( &mut self, request: Request<Write, ___T>, responder: Responder<Write, ___T>, )

Source§

async fn get_partition_size( &mut self, responder: Responder<GetPartitionSize, ___T>, )

Source§

async fn flush(&mut self, responder: Responder<Flush, ___T>)

Source§

async fn wipe(&mut self, responder: Responder<Wipe, ___T>)

Implementors§