pub struct NamedSemaphoreCreationBuilder { /* private fields */ }Expand description
Provides additional settings which are only available for newly created semaphores. Is
returned by NamedSemaphoreBuilder::creation_mode().
For an example see NamedSemaphoreBuilder
Implementations§
source§impl NamedSemaphoreCreationBuilder
impl NamedSemaphoreCreationBuilder
sourcepub fn initial_value(self, value: u32) -> NamedSemaphoreCreationBuilder
pub fn initial_value(self, value: u32) -> NamedSemaphoreCreationBuilder
Sets the initial value of the semaphore. Must be less than MAX_INITIAL_SEMAPHORE_VALUE.
sourcepub fn permission(self, value: Permission) -> NamedSemaphoreCreationBuilder
pub fn permission(self, value: Permission) -> NamedSemaphoreCreationBuilder
Sets the permission of the newly created semaphore.
sourcepub fn create(self) -> Result<NamedSemaphore, NamedSemaphoreCreationError>
pub fn create(self) -> Result<NamedSemaphore, NamedSemaphoreCreationError>
Creates a NamedSemaphore.
Auto Trait Implementations§
impl Freeze for NamedSemaphoreCreationBuilder
impl RefUnwindSafe for NamedSemaphoreCreationBuilder
impl Send for NamedSemaphoreCreationBuilder
impl Sync for NamedSemaphoreCreationBuilder
impl Unpin for NamedSemaphoreCreationBuilder
impl UnwindSafe for NamedSemaphoreCreationBuilder
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