pub struct NamedPipe {
pub name: String,
pub capacity: usize,
pub created_at: DateTime<Utc>,
pub receiver_count: AtomicU32,
pub sender_count: AtomicU32,
pub ttl_after_empty: Duration,
pub last_active: RwLock<Instant>,
/* private fields */
}Expand description
A named pipe with channel-based message delivery.
Fields§
§name: StringPipe name.
capacity: usizeChannel capacity.
created_at: DateTime<Utc>When the pipe was created.
receiver_count: AtomicU32Number of connected receivers.
sender_count: AtomicU32Number of connected senders.
ttl_after_empty: DurationTTL after all references are dropped.
last_active: RwLock<Instant>Last time the pipe was actively used.
Implementations§
Auto Trait Implementations§
impl !Freeze for NamedPipe
impl RefUnwindSafe for NamedPipe
impl Send for NamedPipe
impl Sync for NamedPipe
impl Unpin for NamedPipe
impl UnsafeUnpin for NamedPipe
impl UnwindSafe for NamedPipe
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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 more