Skip to main content

SysconfigServerHandler

Trait SysconfigServerHandler 

Source
pub trait SysconfigServerHandler<___T: Transport = Channel> {
    // Required methods
    fn read(
        &mut self,
        responder: Responder<Read, ___T>,
    ) -> impl Future<Output = ()> + Send;
    fn write(
        &mut self,
        request: Request<Write, ___T>,
        responder: Responder<Write, ___T>,
    ) -> impl Future<Output = ()> + Send;
    fn get_partition_size(
        &mut self,
        responder: Responder<GetPartitionSize, ___T>,
    ) -> impl Future<Output = ()> + Send;
    fn flush(
        &mut self,
        responder: Responder<Flush, ___T>,
    ) -> impl Future<Output = ()> + Send;
    fn wipe(
        &mut self,
        responder: Responder<Wipe, ___T>,
    ) -> impl Future<Output = ()> + Send;
}
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 = ()> + Send

Read from the sub-partition

Source

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

Writes to the sub-partition

Source

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

Get sub-partition size.

Source

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

Flush all previously buffered data to persistent storage.

Source

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

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".

Implementors§