Skip to main content

FsDevLocalBuilder

Struct FsDevLocalBuilder 

Source
pub struct FsDevLocalBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build().

Implementations§

Source§

impl<S: State> FsDevLocalBuilder<S>

Source

pub fn build(self) -> FsDevLocal
where S: IsComplete,

Finish building and return the requested object

Source

pub fn id(self, value: String) -> FsDevLocalBuilder<SetId<S>>
where S::Id: IsUnset,

Required.

Specifies identifier for this device.

Source

pub fn path(self, value: PathBuf) -> FsDevLocalBuilder<SetPath<S>>
where S::Path: IsUnset,

Required.

Specifies the export path for the file system device.

Source

pub fn security_model( self, value: SecurityModel, ) -> FsDevLocalBuilder<SetSecurityModel<S>>
where S::SecurityModel: IsUnset,

Required.

Specifies the security model to be used for this export path.

Source

pub fn writeout(self, value: ()) -> FsDevLocalBuilder<SetWriteout<S>>
where S::Writeout: IsUnset,

Optional (Some / Option setters). Emit writeout=immediate when enabled.

Source

pub fn maybe_writeout( self, value: Option<()>, ) -> FsDevLocalBuilder<SetWriteout<S>>
where S::Writeout: IsUnset,

Optional (Some / Option setters). Emit writeout=immediate when enabled.

Source

pub fn readonly(self, value: ()) -> FsDevLocalBuilder<SetReadonly<S>>
where S::Readonly: IsUnset,

Optional (Some / Option setters). Emit readonly=on when enabled.

Source

pub fn maybe_readonly( self, value: Option<()>, ) -> FsDevLocalBuilder<SetReadonly<S>>
where S::Readonly: IsUnset,

Optional (Some / Option setters). Emit readonly=on when enabled.

Source

pub fn fmode(self, value: String) -> FsDevLocalBuilder<SetFmode<S>>
where S::Fmode: IsUnset,

Optional (Some / Option setters). Specifies the default mode for newly created files on the host.

Source

pub fn maybe_fmode( self, value: Option<String>, ) -> FsDevLocalBuilder<SetFmode<S>>
where S::Fmode: IsUnset,

Optional (Some / Option setters). Specifies the default mode for newly created files on the host.

Source

pub fn dmode(self, value: String) -> FsDevLocalBuilder<SetDmode<S>>
where S::Dmode: IsUnset,

Optional (Some / Option setters). Specifies the default mode for newly created directories on the host.

Source

pub fn maybe_dmode( self, value: Option<String>, ) -> FsDevLocalBuilder<SetDmode<S>>
where S::Dmode: IsUnset,

Optional (Some / Option setters). Specifies the default mode for newly created directories on the host.

Source

pub fn throttling_bps_total( self, value: usize, ) -> FsDevLocalBuilder<SetThrottlingBpsTotal<S>>
where S::ThrottlingBpsTotal: IsUnset,

Optional (Some / Option setters). Throttling limits in bytes per second.

Source

pub fn maybe_throttling_bps_total( self, value: Option<usize>, ) -> FsDevLocalBuilder<SetThrottlingBpsTotal<S>>
where S::ThrottlingBpsTotal: IsUnset,

Optional (Some / Option setters). Throttling limits in bytes per second.

Source

pub fn throttling_bps_read( self, value: usize, ) -> FsDevLocalBuilder<SetThrottlingBpsRead<S>>
where S::ThrottlingBpsRead: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_throttling_bps_read( self, value: Option<usize>, ) -> FsDevLocalBuilder<SetThrottlingBpsRead<S>>
where S::ThrottlingBpsRead: IsUnset,

Optional (Some / Option setters).

Source

pub fn throttling_bps_write( self, value: usize, ) -> FsDevLocalBuilder<SetThrottlingBpsWrite<S>>
where S::ThrottlingBpsWrite: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_throttling_bps_write( self, value: Option<usize>, ) -> FsDevLocalBuilder<SetThrottlingBpsWrite<S>>
where S::ThrottlingBpsWrite: IsUnset,

Optional (Some / Option setters).

Source

pub fn throttling_bps_total_max( self, value: usize, ) -> FsDevLocalBuilder<SetThrottlingBpsTotalMax<S>>
where S::ThrottlingBpsTotalMax: IsUnset,

Optional (Some / Option setters). Bursts in bytes per second.

Source

pub fn maybe_throttling_bps_total_max( self, value: Option<usize>, ) -> FsDevLocalBuilder<SetThrottlingBpsTotalMax<S>>
where S::ThrottlingBpsTotalMax: IsUnset,

Optional (Some / Option setters). Bursts in bytes per second.

Source

pub fn bps_read_max(self, value: usize) -> FsDevLocalBuilder<SetBpsReadMax<S>>
where S::BpsReadMax: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_bps_read_max( self, value: Option<usize>, ) -> FsDevLocalBuilder<SetBpsReadMax<S>>
where S::BpsReadMax: IsUnset,

Optional (Some / Option setters).

Source

pub fn bps_write_max(self, value: usize) -> FsDevLocalBuilder<SetBpsWriteMax<S>>
where S::BpsWriteMax: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_bps_write_max( self, value: Option<usize>, ) -> FsDevLocalBuilder<SetBpsWriteMax<S>>
where S::BpsWriteMax: IsUnset,

Optional (Some / Option setters).

Source

pub fn throttling_iops_total( self, value: usize, ) -> FsDevLocalBuilder<SetThrottlingIopsTotal<S>>
where S::ThrottlingIopsTotal: IsUnset,

Optional (Some / Option setters). Request rate limits in requests per second.

Source

pub fn maybe_throttling_iops_total( self, value: Option<usize>, ) -> FsDevLocalBuilder<SetThrottlingIopsTotal<S>>
where S::ThrottlingIopsTotal: IsUnset,

Optional (Some / Option setters). Request rate limits in requests per second.

Source

pub fn throttling_iops_read( self, value: usize, ) -> FsDevLocalBuilder<SetThrottlingIopsRead<S>>
where S::ThrottlingIopsRead: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_throttling_iops_read( self, value: Option<usize>, ) -> FsDevLocalBuilder<SetThrottlingIopsRead<S>>
where S::ThrottlingIopsRead: IsUnset,

Optional (Some / Option setters).

Source

pub fn throttling_iops_write( self, value: usize, ) -> FsDevLocalBuilder<SetThrottlingIopsWrite<S>>
where S::ThrottlingIopsWrite: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_throttling_iops_write( self, value: Option<usize>, ) -> FsDevLocalBuilder<SetThrottlingIopsWrite<S>>
where S::ThrottlingIopsWrite: IsUnset,

Optional (Some / Option setters).

Source

pub fn throttling_iops_total_max( self, value: usize, ) -> FsDevLocalBuilder<SetThrottlingIopsTotalMax<S>>
where S::ThrottlingIopsTotalMax: IsUnset,

Optional (Some / Option setters). Bursts in requests per second.

Source

pub fn maybe_throttling_iops_total_max( self, value: Option<usize>, ) -> FsDevLocalBuilder<SetThrottlingIopsTotalMax<S>>
where S::ThrottlingIopsTotalMax: IsUnset,

Optional (Some / Option setters). Bursts in requests per second.

Source

pub fn throttling_iops_read_max( self, value: usize, ) -> FsDevLocalBuilder<SetThrottlingIopsReadMax<S>>
where S::ThrottlingIopsReadMax: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_throttling_iops_read_max( self, value: Option<usize>, ) -> FsDevLocalBuilder<SetThrottlingIopsReadMax<S>>
where S::ThrottlingIopsReadMax: IsUnset,

Optional (Some / Option setters).

Source

pub fn throttling_iops_write_max( self, value: usize, ) -> FsDevLocalBuilder<SetThrottlingIopsWriteMax<S>>
where S::ThrottlingIopsWriteMax: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_throttling_iops_write_max( self, value: Option<usize>, ) -> FsDevLocalBuilder<SetThrottlingIopsWriteMax<S>>
where S::ThrottlingIopsWriteMax: IsUnset,

Optional (Some / Option setters).

Source

pub fn throttling_iops_size( self, value: usize, ) -> FsDevLocalBuilder<SetThrottlingIopsSize<S>>
where S::ThrottlingIopsSize: IsUnset,

Optional (Some / Option setters). Request size for IOPS throttling accounting.

Source

pub fn maybe_throttling_iops_size( self, value: Option<usize>, ) -> FsDevLocalBuilder<SetThrottlingIopsSize<S>>
where S::ThrottlingIopsSize: IsUnset,

Optional (Some / Option setters). Request size for IOPS throttling accounting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V