pub struct PartitionsAdminSynchronousProxy { /* private fields */ }
Implementations§
Source§impl PartitionsAdminSynchronousProxy
impl PartitionsAdminSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<PartitionsAdminEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<PartitionsAdminEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn reset_partition_table(
&self,
partitions: &[PartitionInfo],
___deadline: MonotonicInstant,
) -> Result<PartitionsAdminResetPartitionTableResult, Error>
pub fn reset_partition_table( &self, partitions: &[PartitionInfo], ___deadline: MonotonicInstant, ) -> Result<PartitionsAdminResetPartitionTableResult, Error>
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 table entries are assigned in the specified order. 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 SynchronousProxy for PartitionsAdminSynchronousProxy
impl SynchronousProxy for PartitionsAdminSynchronousProxy
Source§type Proxy = PartitionsAdminProxy
type Proxy = PartitionsAdminProxy
The async proxy for the same protocol.
Source§type Protocol = PartitionsAdminMarker
type Protocol = PartitionsAdminMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for PartitionsAdminSynchronousProxy
impl RefUnwindSafe for PartitionsAdminSynchronousProxy
impl Send for PartitionsAdminSynchronousProxy
impl Sync for PartitionsAdminSynchronousProxy
impl Unpin for PartitionsAdminSynchronousProxy
impl UnwindSafe for PartitionsAdminSynchronousProxy
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