pub struct DeviceBoundSessionWithUsageBuilder { /* private fields */ }Expand description
Builder for DeviceBoundSessionWithUsage.
Implementations§
Source§impl DeviceBoundSessionWithUsageBuilder
impl DeviceBoundSessionWithUsageBuilder
Sourcepub fn session_key<VALUE: Into<DeviceBoundSessionKey>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn session_key<VALUE: Into<DeviceBoundSessionKey>>( &mut self, value: VALUE, ) -> &mut Self
The key for the session.
Sourcepub fn usage<VALUE: Into<DeviceBoundSessionWithUsageUsage>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn usage<VALUE: Into<DeviceBoundSessionWithUsageUsage>>( &mut self, value: VALUE, ) -> &mut Self
How the session was used (or not used).
Sourcepub fn build(
&self,
) -> Result<DeviceBoundSessionWithUsage, DeviceBoundSessionWithUsageBuilderError>
pub fn build( &self, ) -> Result<DeviceBoundSessionWithUsage, DeviceBoundSessionWithUsageBuilderError>
Trait Implementations§
Source§impl Clone for DeviceBoundSessionWithUsageBuilder
impl Clone for DeviceBoundSessionWithUsageBuilder
Source§fn clone(&self) -> DeviceBoundSessionWithUsageBuilder
fn clone(&self) -> DeviceBoundSessionWithUsageBuilder
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 moreAuto Trait Implementations§
impl Freeze for DeviceBoundSessionWithUsageBuilder
impl RefUnwindSafe for DeviceBoundSessionWithUsageBuilder
impl Send for DeviceBoundSessionWithUsageBuilder
impl Sync for DeviceBoundSessionWithUsageBuilder
impl Unpin for DeviceBoundSessionWithUsageBuilder
impl UnsafeUnpin for DeviceBoundSessionWithUsageBuilder
impl UnwindSafe for DeviceBoundSessionWithUsageBuilder
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