pub struct DeviceConflictStrategyBuilder { /* private fields */ }Expand description
设备冲突策略构建器
Implementations§
Source§impl DeviceConflictStrategyBuilder
impl DeviceConflictStrategyBuilder
Sourcepub fn mobile_exclusive(self) -> Self
pub fn mobile_exclusive(self) -> Self
设置移动端互斥
Sourcepub fn platform_exclusive(self) -> Self
pub fn platform_exclusive(self) -> Self
设置平台互斥
Sourcepub fn fully_exclusive(self) -> Self
pub fn fully_exclusive(self) -> Self
设置完全互斥
Sourcepub fn mobile_and_pc_coexist(self) -> Self
pub fn mobile_and_pc_coexist(self) -> Self
设置移动端和PC端共存
移动端之间互斥,PC端之间互斥,但移动端和PC端可以同时在线 例如:同一用户可以有 1 个移动端(Android/iOS/HarmonyOS/H5) + 1 个 PC(Web/PC)同时在线
Sourcepub fn custom(
self,
allowed_combinations: Vec<HashSet<DevicePlatform>>,
exclusive_groups: Vec<HashSet<DevicePlatform>>,
) -> Self
pub fn custom( self, allowed_combinations: Vec<HashSet<DevicePlatform>>, exclusive_groups: Vec<HashSet<DevicePlatform>>, ) -> Self
设置自定义规则
Sourcepub fn build(self) -> DeviceConflictStrategy
pub fn build(self) -> DeviceConflictStrategy
构建策略
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeviceConflictStrategyBuilder
impl RefUnwindSafe for DeviceConflictStrategyBuilder
impl Send for DeviceConflictStrategyBuilder
impl Sync for DeviceConflictStrategyBuilder
impl Unpin for DeviceConflictStrategyBuilder
impl UnsafeUnpin for DeviceConflictStrategyBuilder
impl UnwindSafe for DeviceConflictStrategyBuilder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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