pub struct ReceiveChannel {
pub iface_info: ReceiveIfaceInfo,
pub is_opened: bool,
/* private fields */
}Fields§
§iface_info: ReceiveIfaceInfo§is_opened: boolImplementations§
Source§impl ReceiveChannel
impl ReceiveChannel
pub fn open(&mut self) -> Result<()>
pub fn close(&mut self) -> Result<()>
pub fn is_opened(&self) -> bool
pub fn recv(&self, buf: &mut [u8], timeout: Duration) -> Result<usize>
pub fn set_halt(&self, timeout: Duration) -> Result<()>
pub fn clear_halt(&mut self) -> Result<()>
Auto Trait Implementations§
impl !Freeze for ReceiveChannel
impl RefUnwindSafe for ReceiveChannel
impl Send for ReceiveChannel
impl Sync for ReceiveChannel
impl Unpin for ReceiveChannel
impl UnwindSafe for ReceiveChannel
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