pub enum SysconfigRequest {
Read {
responder: SysconfigReadResponder,
},
Write {
payload: Buffer,
responder: SysconfigWriteResponder,
},
GetPartitionSize {
responder: SysconfigGetPartitionSizeResponder,
},
Flush {
responder: SysconfigFlushResponder,
},
Wipe {
responder: SysconfigWipeResponder,
},
}
Expand description
Protocol that provides access to sysconfig-data sub-partition in sysconfig partition. The main user of the protocol are pkg-solver and system update-checker, which need to read/write sysconfig-data channel.
Variants§
Read
Read from the sub-partition
Fields
§
responder: SysconfigReadResponder
Write
Writes to the sub-partition
GetPartitionSize
Get sub-partition size.
Fields
§
responder: SysconfigGetPartitionSizeResponder
Flush
Flush all previously buffered data to persistent storage.
Fields
§
responder: SysconfigFlushResponder
Wipe
Wipe all data in the sub-partition (write 0 to all bytes).
Fields
§
responder: SysconfigWipeResponder
Implementations§
Source§impl SysconfigRequest
impl SysconfigRequest
pub fn into_read(self) -> Option<SysconfigReadResponder>
pub fn into_write(self) -> Option<(Buffer, SysconfigWriteResponder)>
pub fn into_get_partition_size( self, ) -> Option<SysconfigGetPartitionSizeResponder>
pub fn into_flush(self) -> Option<SysconfigFlushResponder>
pub fn into_wipe(self) -> Option<SysconfigWipeResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SysconfigRequest
impl !RefUnwindSafe for SysconfigRequest
impl Send for SysconfigRequest
impl Sync for SysconfigRequest
impl Unpin for SysconfigRequest
impl !UnwindSafe for SysconfigRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more