pub struct SCDynamicStoreBuilder<T> { /* private fields */ }
Expand description
Builder for SCDynamicStore
sessions.
Implementations§
source§impl SCDynamicStoreBuilder<()>
impl SCDynamicStoreBuilder<()>
sourcepub fn new<S: Into<CFString>>(name: S) -> Self
pub fn new<S: Into<CFString>>(name: S) -> Self
Creates a new builder. name
is used as the name parameter when creating the
SCDynamicStore
session.
source§impl<T> SCDynamicStoreBuilder<T>
impl<T> SCDynamicStoreBuilder<T>
sourcepub fn session_keys(self, session_keys: bool) -> Self
pub fn session_keys(self, session_keys: bool) -> Self
Set wether or not the created SCDynamicStore
should have session keys or not.
See SCDynamicStoreCreateWithOptions
for details.
Defaults to false
.
sourcepub fn callback_context<T2>(
self,
callback_context: SCDynamicStoreCallBackContext<T2>,
) -> SCDynamicStoreBuilder<T2>
pub fn callback_context<T2>( self, callback_context: SCDynamicStoreCallBackContext<T2>, ) -> SCDynamicStoreBuilder<T2>
Set a callback context (callback function and data to pass to each callback call).
Defaults to having callbacks disabled.
sourcepub fn build(self) -> SCDynamicStore
pub fn build(self) -> SCDynamicStore
Create the dynamic store session.
Auto Trait Implementations§
impl<T> Freeze for SCDynamicStoreBuilder<T>where
T: Freeze,
impl<T> RefUnwindSafe for SCDynamicStoreBuilder<T>where
T: RefUnwindSafe,
impl<T> !Send for SCDynamicStoreBuilder<T>
impl<T> !Sync for SCDynamicStoreBuilder<T>
impl<T> Unpin for SCDynamicStoreBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for SCDynamicStoreBuilder<T>where
T: 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