pub struct PartitionsAdminProxy { /* private fields */ }
Implementations§
source§impl PartitionsAdminProxy
impl PartitionsAdminProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.storagehost/PartitionsAdmin.
sourcepub fn take_event_stream(&self) -> PartitionsAdminEventStream
pub fn take_event_stream(&self) -> PartitionsAdminEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn reset_partition_table(
&self,
partitions: &[PartitionInfo],
) -> QueryResponseFut<PartitionsAdminResetPartitionTableResult>
pub fn reset_partition_table( &self, partitions: &[PartitionInfo], ) -> QueryResponseFut<PartitionsAdminResetPartitionTableResult>
Wipes and re-initializes the partition table. This is a destructive operation! If there are any active clients of existing partitions, their connections will be severed. This function is only intended to be used in product configurations where nothing is actively using any partitions, so there’s no need to make this operation graceful.
Partitions are allocated contiguously and in the provided order. Random instance GUIDs are assigned. Empty entries are permitted (i.e. all fields set to 0) and will result in an empty slot in the partition table, which allows the table size to be set appropriately.
Trait Implementations§
source§impl Clone for PartitionsAdminProxy
impl Clone for PartitionsAdminProxy
source§fn clone(&self) -> PartitionsAdminProxy
fn clone(&self) -> PartitionsAdminProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PartitionsAdminProxy
impl Debug for PartitionsAdminProxy
source§impl PartitionsAdminProxyInterface for PartitionsAdminProxy
impl PartitionsAdminProxyInterface for PartitionsAdminProxy
type ResetPartitionTableResponseFut = QueryResponseFut<Result<(), i32>>
fn reset_partition_table( &self, partitions: &[PartitionInfo], ) -> Self::ResetPartitionTableResponseFut
source§impl Proxy for PartitionsAdminProxy
impl Proxy for PartitionsAdminProxy
§type Protocol = PartitionsAdminMarker
type Protocol = PartitionsAdminMarker
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Auto Trait Implementations§
impl Freeze for PartitionsAdminProxy
impl !RefUnwindSafe for PartitionsAdminProxy
impl Send for PartitionsAdminProxy
impl Sync for PartitionsAdminProxy
impl Unpin for PartitionsAdminProxy
impl !UnwindSafe for PartitionsAdminProxy
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)