fidl_fuchsia_hardware_block_volumeTrait VolumeManagerProxyInterface
Source pub trait VolumeManagerProxyInterface: Send + Sync {
type AllocatePartitionResponseFut: Future<Output = Result<i32, Error>> + Send;
type GetInfoResponseFut: Future<Output = Result<(i32, Option<Box<VolumeManagerInfo>>), Error>> + Send;
type ActivateResponseFut: Future<Output = Result<i32, Error>> + Send;
type GetPartitionLimitResponseFut: Future<Output = Result<(i32, u64), Error>> + Send;
type SetPartitionLimitResponseFut: Future<Output = Result<i32, Error>> + Send;
type SetPartitionNameResponseFut: Future<Output = Result<VolumeManagerSetPartitionNameResult, Error>> + Send;
// Required methods
fn allocate_partition(
&self,
slice_count: u64,
type_: &Guid,
instance: &Guid,
name: &str,
flags: u32,
) -> Self::AllocatePartitionResponseFut;
fn get_info(&self) -> Self::GetInfoResponseFut;
fn activate(
&self,
old_guid: &Guid,
new_guid: &Guid,
) -> Self::ActivateResponseFut;
fn get_partition_limit(
&self,
guid: &Guid,
) -> Self::GetPartitionLimitResponseFut;
fn set_partition_limit(
&self,
guid: &Guid,
slice_count: u64,
) -> Self::SetPartitionLimitResponseFut;
fn set_partition_name(
&self,
guid: &Guid,
name: &str,
) -> Self::SetPartitionNameResponseFut;
}