pub struct Direct(/* private fields */);Expand description
A Direct builder.
Implementations§
Source§impl Direct
impl Direct
pub fn new() -> Self
pub fn offset(self, offset: u32) -> Self
pub fn offset_if(self, offset: u32, predicate: bool) -> Self
pub fn offset_if_some(self, offset: Option<u32>) -> Self
pub fn rate(self, rate: impl Into<Rate>) -> Self
pub fn rate_if(self, rate: impl Into<Rate>, predicate: bool) -> Self
pub fn rate_if_some(self, rate: Option<impl Into<Rate>>) -> Self
pub fn build(self) -> Direct
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Direct
impl RefUnwindSafe for Direct
impl Send for Direct
impl Sync for Direct
impl Unpin for Direct
impl UnsafeUnpin for Direct
impl UnwindSafe for Direct
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