pub struct ServerControlBuilder<AttributeStatus> { /* private fields */ }Expand description
A builder for convenience in constructing a ServerControl.
Builder pattern inspired by Sguaba
Implementations§
Source§impl ServerControlBuilder<ServerControlAttributeHasBeenSet>
impl ServerControlBuilder<ServerControlAttributeHasBeenSet>
Sourcepub fn finish<'a>(self) -> ServerControl<'a>
pub fn finish<'a>(self) -> ServerControl<'a>
Finish building and construct the ServerControl.
Source§impl<AttributeStatus> ServerControlBuilder<AttributeStatus>
impl<AttributeStatus> ServerControlBuilder<AttributeStatus>
Sourcepub fn with_can_skip_until(
self,
can_skip_until: f64,
) -> ServerControlBuilder<ServerControlAttributeHasBeenSet>
pub fn with_can_skip_until( self, can_skip_until: f64, ) -> ServerControlBuilder<ServerControlAttributeHasBeenSet>
Add the provided can_skip_until to the attributes built into ServerControl
Sourcepub fn with_can_skip_dateranges(
self,
) -> ServerControlBuilder<ServerControlAttributeHasBeenSet>
pub fn with_can_skip_dateranges( self, ) -> ServerControlBuilder<ServerControlAttributeHasBeenSet>
Add the provided can_skip_dateranges to the attributes built into ServerControl
Sourcepub fn with_hold_back(
self,
hold_back: f64,
) -> ServerControlBuilder<ServerControlAttributeHasBeenSet>
pub fn with_hold_back( self, hold_back: f64, ) -> ServerControlBuilder<ServerControlAttributeHasBeenSet>
Add the provided hold_back to the attributes built into ServerControl
Sourcepub fn with_part_hold_back(
self,
part_hold_back: f64,
) -> ServerControlBuilder<ServerControlAttributeHasBeenSet>
pub fn with_part_hold_back( self, part_hold_back: f64, ) -> ServerControlBuilder<ServerControlAttributeHasBeenSet>
Add the provided part_hold_back to the attributes built into ServerControl
Sourcepub fn with_can_block_reload(
self,
) -> ServerControlBuilder<ServerControlAttributeHasBeenSet>
pub fn with_can_block_reload( self, ) -> ServerControlBuilder<ServerControlAttributeHasBeenSet>
Add the provided can_block_reload to the attributes built into ServerControl
Trait Implementations§
Source§impl<AttributeStatus: Clone> Clone for ServerControlBuilder<AttributeStatus>
impl<AttributeStatus: Clone> Clone for ServerControlBuilder<AttributeStatus>
Source§fn clone(&self) -> ServerControlBuilder<AttributeStatus>
fn clone(&self) -> ServerControlBuilder<AttributeStatus>
Returns a duplicate 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<AttributeStatus: Debug> Debug for ServerControlBuilder<AttributeStatus>
impl<AttributeStatus: Debug> Debug for ServerControlBuilder<AttributeStatus>
impl<AttributeStatus: Copy> Copy for ServerControlBuilder<AttributeStatus>
Auto Trait Implementations§
impl<AttributeStatus> Freeze for ServerControlBuilder<AttributeStatus>
impl<AttributeStatus> RefUnwindSafe for ServerControlBuilder<AttributeStatus>where
AttributeStatus: RefUnwindSafe,
impl<AttributeStatus> Send for ServerControlBuilder<AttributeStatus>where
AttributeStatus: Send,
impl<AttributeStatus> Sync for ServerControlBuilder<AttributeStatus>where
AttributeStatus: Sync,
impl<AttributeStatus> Unpin for ServerControlBuilder<AttributeStatus>where
AttributeStatus: Unpin,
impl<AttributeStatus> UnsafeUnpin for ServerControlBuilder<AttributeStatus>
impl<AttributeStatus> UnwindSafe for ServerControlBuilder<AttributeStatus>where
AttributeStatus: UnwindSafe,
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