pub struct ChannelControl { /* private fields */ }
Expand description
Control object for enabling subchannels.
Implementations§
Source§impl ChannelControl
impl ChannelControl
Sourcepub fn enable_subchannels(&self, count: u16) -> Result<(), TooManySubchannels>
pub fn enable_subchannels(&self, count: u16) -> Result<(), TooManySubchannels>
Enables the first count
subchannels.
If more than count
subchannels are already enabled, this does nothing.
Fails if count
is bigger than the requested maximum returned by
VmbusDevice::max_subchannels
.
Sourcepub fn max_subchannels(&self) -> u16
pub fn max_subchannels(&self) -> u16
Returns the maximum number of supported subchannels.
Trait Implementations§
Source§impl Clone for ChannelControl
impl Clone for ChannelControl
Source§fn clone(&self) -> ChannelControl
fn clone(&self) -> ChannelControl
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ChannelControl
impl Debug for ChannelControl
Source§impl Default for ChannelControl
impl Default for ChannelControl
Source§fn default() -> ChannelControl
fn default() -> ChannelControl
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ChannelControl
impl !RefUnwindSafe for ChannelControl
impl Send for ChannelControl
impl Sync for ChannelControl
impl Unpin for ChannelControl
impl !UnwindSafe for ChannelControl
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