pub struct TransferRegistryHandle(pub Arc<RwLock<TransferRegistry>>);Expand description
Tauri managed state handle for the transfer registry.
Wraps Arc<RwLock<TransferRegistry>> so commands can .write().await to
register/update/cancel, or .read().await to list/get.
Tuple Fields§
§0: Arc<RwLock<TransferRegistry>>Implementations§
Source§impl TransferRegistryHandle
impl TransferRegistryHandle
pub fn new(registry: TransferRegistry) -> Self
Sourcepub fn inner(&self) -> &RwLock<TransferRegistry>
pub fn inner(&self) -> &RwLock<TransferRegistry>
Borrow the inner RwLock<TransferRegistry> for read/write access.
Trait Implementations§
Source§impl Clone for TransferRegistryHandle
impl Clone for TransferRegistryHandle
Source§fn clone(&self) -> TransferRegistryHandle
fn clone(&self) -> TransferRegistryHandle
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 TransferRegistryHandle
impl !RefUnwindSafe for TransferRegistryHandle
impl Send for TransferRegistryHandle
impl Sync for TransferRegistryHandle
impl Unpin for TransferRegistryHandle
impl UnsafeUnpin for TransferRegistryHandle
impl !UnwindSafe for TransferRegistryHandle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.