pub struct Channel { /* private fields */ }Implementations§
Source§impl Channel
impl Channel
pub const FRAME_MAX: usize
pub const FDS_MAX: usize = 64
pub const BIG_MAX: usize
pub fn new(fd: OwnedFd) -> Self
pub fn try_clone(&self) -> Result<Self, String>
pub fn send(&self, frame: &Value, wait: bool) -> Result<(), String>
pub fn pack(frame: &Value) -> Result<Packet, String>
pub fn pack_with_fd(frame: &Value, fd: OwnedFd) -> Result<Packet, String>
pub fn pack_with_fds(frame: &Value, fds: Vec<OwnedFd>) -> Result<Packet, String>
pub fn offer(&self, packet: &Packet) -> Result<bool, String>
pub fn send_with_fd( &self, frame: &Value, fd: BorrowedFd<'_>, wait: bool, ) -> Result<(), String>
pub fn send_with_fds( &self, frame: &Value, fds: &[BorrowedFd<'_>], wait: bool, ) -> Result<(), String>
pub fn receive(&self, wait: bool) -> Result<Received, String>
pub fn receive_with_fd( &self, wait: bool, ) -> Result<(Received, Option<OwnedFd>), String>
pub fn receive_with_fds( &self, wait: bool, ) -> Result<(Received, Vec<OwnedFd>), String>
Trait Implementations§
Auto Trait Implementations§
impl Forget for Channel
impl Freeze for Channelwhere
I32NotAllOnes: Freeze,
impl Move for Channel
impl RefUnwindSafe for Channelwhere
I32NotAllOnes: RefUnwindSafe,
impl Send for Channelwhere
I32NotAllOnes: Send,
impl Sync for Channelwhere
I32NotAllOnes: Sync,
impl Unpin for Channelwhere
I32NotAllOnes: Unpin,
impl UnsafeUnpin for Channelwhere
I32NotAllOnes: UnsafeUnpin,
impl UnwindSafe for Channelwhere
I32NotAllOnes: UnwindSafe,
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