Struct a653rs_linux_core::ipc::IpcSender
source · pub struct IpcSender<T> { /* private fields */ }Expand description
Internal data type for the IPC sender
Implementations§
source§impl<T> IpcSender<T>where
T: Serialize,
impl<T> IpcSender<T>where
T: Serialize,
sourcepub fn try_send(&self, value: &T) -> TypedResult<()>
pub fn try_send(&self, value: &T) -> TypedResult<()>
Sends value alongside the IpcSender This fails if the resource is temporarily not available.
sourcepub fn try_send_timeout(
&self,
_value: &T,
_duration: Duration,
) -> TypedResult<bool>
pub fn try_send_timeout( &self, _value: &T, _duration: Duration, ) -> TypedResult<bool>
Try sending value alongside the IpcSender for a certain duration
Trait Implementations§
source§impl<T> AsFd for IpcSender<T>
impl<T> AsFd for IpcSender<T>
source§fn as_fd(&self) -> BorrowedFd<'_>
fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read more
source§impl<T> From<UnixDatagram> for IpcSender<T>
impl<T> From<UnixDatagram> for IpcSender<T>
source§fn from(value: UnixDatagram) -> Self
fn from(value: UnixDatagram) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for IpcSender<T>
impl<T> RefUnwindSafe for IpcSender<T>where
T: RefUnwindSafe,
impl<T> Send for IpcSender<T>where
T: Send,
impl<T> Sync for IpcSender<T>where
T: Sync,
impl<T> Unpin for IpcSender<T>where
T: Unpin,
impl<T> UnwindSafe for IpcSender<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> AsSource for Twhere
T: AsFd,
impl<T> AsSource for Twhere
T: AsFd,
source§fn source(&self) -> BorrowedFd<'_>
fn source(&self) -> BorrowedFd<'_>
Returns the borrowed file descriptor.
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