Struct silx_core::channels::ArchDispatchReceiver
source · pub struct ArchDispatchReceiver<U>where
U: SlxData,{ /* private fields */ }Expand description
Dispatch receiver for archived data
U: type of the data; needs to implementSlxData
Implementations§
source§impl<U> ArchDispatchReceiver<U>where
U: SlxData,
impl<U> ArchDispatchReceiver<U>where
U: SlxData,
sourcepub fn try_recv(&self) -> Result<ArchData<U>, TryRecvError>
pub fn try_recv(&self) -> Result<ArchData<U>, TryRecvError>
Try to receive archived data without awaiting
- Output: the archived data or a reception diagnosis
sourcepub async fn recv(&self) -> Result<ArchData<U>, RecvError>
pub async fn recv(&self) -> Result<ArchData<U>, RecvError>
Receive archived data
- Output: the archived data or an error
sourcepub fn close(&self) -> bool
pub fn close(&self) -> bool
Close the channel: returns true if this call has closed the channel and it was not closed already
- Output: a boolean
sourcepub fn capacity(&self) -> Option<usize>
pub fn capacity(&self) -> Option<usize>
Capacity of the channel
- Output: the capacity if defined; otherwise the channel is unsized
sourcepub fn receiver_count(&self) -> usize
pub fn receiver_count(&self) -> usize
Count the receivers
- Output: number of receivers
sourcepub fn sender_count(&self) -> usize
pub fn sender_count(&self) -> usize
Count the senders
- Output: number of senders
Trait Implementations§
Auto Trait Implementations§
impl<U> RefUnwindSafe for ArchDispatchReceiver<U>where
U: RefUnwindSafe,
impl<U> Send for ArchDispatchReceiver<U>where
U: Send,
impl<U> Sync for ArchDispatchReceiver<U>where
U: Sync,
impl<U> !Unpin for ArchDispatchReceiver<U>
impl<U> UnwindSafe for ArchDispatchReceiver<U>where
U: UnwindSafe,
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§impl<T> HashedTypeUuid for T
impl<T> HashedTypeUuid for T
§fn type_hash_native<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_native<REF>() -> u128where
Self: HashedTypeDef<REF>,
return native type hash
§fn type_hash_le<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_le<REF>() -> u128where
Self: HashedTypeDef<REF>,
return little endianess type hash
§fn type_hash_be<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_be<REF>() -> u128where
Self: HashedTypeDef<REF>,
return big endianess type hash
§fn type_uuid_hyphenated<REF>() -> Stringwhere
Self: HashedTypeDef<REF>,
fn type_uuid_hyphenated<REF>() -> Stringwhere
Self: HashedTypeDef<REF>,
return uuid hyphenated string
§fn self_type_hash_native<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
fn self_type_hash_native<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
return native type hash from instance
§fn self_type_hash_le<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
fn self_type_hash_le<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
return little endianess type hash from instance
§fn self_type_hash_be<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
fn self_type_hash_be<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
return big endianess type hash from instance
§fn self_type_uuid<REF>(&self) -> Uuidwhere
Self: HashedTypeDef<REF>,
fn self_type_uuid<REF>(&self) -> Uuidwhere
Self: HashedTypeDef<REF>,
return type hash-derived uuid from instance
§fn self_type_uuid_hyphenated<REF>(&self) -> Stringwhere
Self: HashedTypeDef<REF>,
fn self_type_uuid_hyphenated<REF>(&self) -> Stringwhere
Self: HashedTypeDef<REF>,
return uuid hyphenated string from instance