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§
Sourcefn read(
&mut self,
responder: Responder<Read, ___T>,
) -> impl Future<Output = ()> + Send
fn read( &mut self, responder: Responder<Read, ___T>, ) -> impl Future<Output = ()> + Send
Read from the sub-partition
Sourcefn write(
&mut self,
request: Request<Write, ___T>,
responder: Responder<Write, ___T>,
) -> impl Future<Output = ()> + Send
fn write( &mut self, request: Request<Write, ___T>, responder: Responder<Write, ___T>, ) -> impl Future<Output = ()> + Send
Writes to the sub-partition
Sourcefn get_partition_size(
&mut self,
responder: Responder<GetPartitionSize, ___T>,
) -> impl Future<Output = ()> + Send
fn get_partition_size( &mut self, responder: Responder<GetPartitionSize, ___T>, ) -> impl Future<Output = ()> + Send
Get sub-partition size.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".